Exemplo n.º 1
0
 def test_init_non_empty(self):
     input_list = [BasicWord('Hello'), BasicWord('world')]
     sentencce = Sentence(input_list)
     actual = sentencce.word_list()
     self.assertEqual(actual, input_list)
     self.assertIsNot(actual, input_list)
Exemplo n.º 2
0
 def test_init_empty(self):
     sentence = Sentence()
     self.assertEqual(sentence.word_list(), [])