def test_file_contets_to_set_b(self): expected = { "and", "everywhere", "go", "lamb", "marry", "sure", "that", "the", "to", "was", "went" } self.assertSetEqual(expected, P8_10.file_contents_to_set("test_file_b"))
def test_common_words(self): set_a = P8_10.file_contents_to_set("test_file_a") set_b = P8_10.file_contents_to_set("test_file_b") expected = {"lamb", "marry"} self.assertSetEqual(expected, P8_10.common_words(set_a, set_b))
def test_file_contents_to_set_a(self): expected = {"a", "had", "lamb", "little", "marry"} self.assertSetEqual(expected, P8_10.file_contents_to_set("test_file_a"))
def test_file_contets_to_set_b(self): expected = {"and", "everywhere", "go", "lamb", "marry", "sure", "that", "the", "to", "was", "went"} self.assertSetEqual(expected, P8_10.file_contents_to_set("test_file_b"))