Example #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')
Example #2
0
 def test_list_of_three_ids_double_mismatches(self):
     ids = ['aaaaa', 'abbaa', 'accaa']
     self.assertEqual(get_common_letters(ids), None)
Example #3
0
 def test_list_of_three_different_one_mismatch_each(self):
     ids = ['aaaaa', 'aabaa', 'aacaa']
     self.assertEqual(get_common_letters(ids), 'aaaa')
Example #4
0
 def test_list_of_three_ids_none_meets(self):
     ids = ['abbaa', 'baaab', 'aaaaa']
     self.assertEqual(get_common_letters(ids), None)
Example #5
0
 def test_list_of_three_ids_first_pair_meets(self):
     ids = ['aaaaa', 'baaaa', 'aaaaa']
     self.assertEqual(get_common_letters(ids), 'aaaa')