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