Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # with fixtures
- @pytest.fixture()
- def give_me_alphabet_twice():
- return string.ascii_lowercase * 2
- def test_remove_all_a(give_me_alphabet_twice):
- assert 'a' not in remove_all_a(give_me_alphabet_twice)
- def test_remove_all_b(give_me_alphabet_twice):
- assert 'b' not in remove_all_b(give_me_alphabet_twice)
- ########################################
- # without fixtures
- def give_me_alphabet_thirce():
- return string.ascii_lowercase * 3
- def test_remove_all_a_again():
- assert 'a' not in remove_all_a(give_me_alphabet_thirce())
- def test_remove_all_b_again():
- assert 'b' not in remove_all_b(give_me_alphabet_thirce())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement