Beispiel #1
0
 def test_returns_correct_number_of_words(self, clean_word):
     assert len(get_chips('foo bar')) == 2
Beispiel #2
0
 def test_returns_correct_value(self, clean_word):
     clean_word.return_value = fakes.fake_value()
     assert get_chips('foo') == [clean_word.return_value]
Beispiel #3
0
 def test_empty_string_doesnt_call_clean_word(self, clean_word):
     get_chips('')
     assert not clean_word.called
Beispiel #4
0
 def test_calls_clean_word_with_correct_argument(self, clean_word):
     get_chips('foo')
     clean_word.assert_called_with('foo')
Beispiel #5
0
 def test_empty_string(self):
     assert get_chips('') == []