def test_can_get_one_noun_from_noun_phrase(self): nouns = extract_nouns("the car") self.assertEqual(len(nouns), 1) self.assertEqual(nouns[0], "car")
def test_can_get_one_noun_from_one_word(self): nouns = extract_nouns("car") self.assertEqual(len(nouns), 1) self.assertEqual(nouns[0], "car")