Пример #1
0
 def test_compare_keys_population_less_than(self):
   key1 = FuzzyMatchingKey(state='CA', city='Mountain View', population=1)
   key2 = FuzzyMatchingKey(state='CA', city='Sunnyvale', population=102)
   self.assertEqual(fbi_data_table.compare_keys(key1, key2), -1)
Пример #2
0
 def test_compare_keys_equal_wrong_population(self):
   key1 = FuzzyMatchingKey(state='CA', city='Sunnyvale City', population=100)
   key2 = FuzzyMatchingKey(state='CA', city='Sunnyvale', population=200)
   self.assertEquals(fbi_data_table.compare_keys(key1, key2), 1)