def test_get_first_word(self): test_line = "This is a test line" exptected_word = "This" self.assertEqual(Seeker.get_first_word(self, test_line), exptected_word)
def test_find_them(self): s = Seeker("test/dict", "test/log") expected_records = [WantedRecord("second", "second line"), WantedRecord("third", "third party")] s.find_them() self.assertEqual(s.get_result(), expected_records)