예제 #1
0
 def test_error_equal(self):
     error = Error()
     other = Error('code', 'message', 'title')
     self.assertTrue(error.__eq__(error))
     self.assertTrue(other.__eq__(other))
     self.assertFalse(error.__eq__(other))
     self.assertFalse(other.__eq__(error))