Пример #1
0
 def test_false_positive_1(self):
     contact = Contact(1, 2, 1.0)
     self.assertFalse(contact.false_positive)
     contact.false_positive = True
     self.assertTrue(contact.false_positive)
Пример #2
0
 def test_status_2(self):
     contact = Contact(1, 2000000, 1.0)
     self.assertEqual(ContactMatchState.unknown.value, contact.status)
     contact.false_positive = True
     self.assertEqual(ContactMatchState.false_positive.value,
                      contact.status)