def test_bic_validator_deconstruct(self): bic1 = BICValidator() bic2 = BICValidator() self.assertEqual(bic1, bic2, msg="BIC validators are not equal.") # Call to the deconstruct method to see if it exists. bic1.deconstruct()
def test_bic_validator_deconstruct(self): # Deconstruct method is required for django 1.7+ compatibility. bic1 = BICValidator() bic2 = BICValidator() self.assertEqual(bic1, bic2, msg="BIC validators are not equal.") # Call to the deconstruct method to see if it exists. bic1.deconstruct()