def test_list_of_four_ids_first_and_last_mismatches(self): ids = ['aaaaa', 'abbaa', 'abbba', 'acaaa'] self.assertEqual(get_common_letters(ids), 'aaaa')
def test_list_of_three_ids_double_mismatches(self): ids = ['aaaaa', 'abbaa', 'accaa'] self.assertEqual(get_common_letters(ids), None)
def test_list_of_three_different_one_mismatch_each(self): ids = ['aaaaa', 'aabaa', 'aacaa'] self.assertEqual(get_common_letters(ids), 'aaaa')
def test_list_of_three_ids_none_meets(self): ids = ['abbaa', 'baaab', 'aaaaa'] self.assertEqual(get_common_letters(ids), None)
def test_list_of_three_ids_first_pair_meets(self): ids = ['aaaaa', 'baaaa', 'aaaaa'] self.assertEqual(get_common_letters(ids), 'aaaa')