Exemplo n.º 1
0
 def test_list_of_four_ids_first_and_last_mismatches(self):
     ids = ['aaaaa', 'abbaa', 'abbba', 'acaaa']
     self.assertEqual(get_common_letters(ids), 'aaaa')
Exemplo n.º 2
0
 def test_list_of_three_ids_double_mismatches(self):
     ids = ['aaaaa', 'abbaa', 'accaa']
     self.assertEqual(get_common_letters(ids), None)
Exemplo n.º 3
0
 def test_list_of_three_different_one_mismatch_each(self):
     ids = ['aaaaa', 'aabaa', 'aacaa']
     self.assertEqual(get_common_letters(ids), 'aaaa')
Exemplo n.º 4
0
 def test_list_of_three_ids_none_meets(self):
     ids = ['abbaa', 'baaab', 'aaaaa']
     self.assertEqual(get_common_letters(ids), None)
Exemplo n.º 5
0
 def test_list_of_three_ids_first_pair_meets(self):
     ids = ['aaaaa', 'baaaa', 'aaaaa']
     self.assertEqual(get_common_letters(ids), 'aaaa')