Beispiel #1
0
 def test_is_equal_to_compares_only_scan_attributes__same_result(self):
     """Test is_equal_to does not compare pk, _state, etc."""
     result1 = ScanResult(live=True, hsts=True, hsts_max_age=True,
                          securedrop=self.securedrop)
     result2 = ScanResult(live=True, hsts=True, hsts_max_age=True,
                          securedrop=self.securedrop)
     self.assertTrue(result1.is_equal_to(result2))
Beispiel #2
0
 def test_is_equal_to_compares_only_scan_attributes__new_result(self):
     result1 = ScanResult(live=True, hsts=True, hsts_max_age=True, securedrop=self.securedrop)
     result2 = ScanResult(live=False, securedrop=self.securedrop)
     self.assertFalse(result1.is_equal_to(result2))