Skip to content

Commit

Permalink
Updated comments referencing Django 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
claudep committed Nov 11, 2016
1 parent 1d37e78 commit 2927a30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
9 changes: 4 additions & 5 deletions tests/test_generic/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ def test_iban_validator(self):
self.assertRaisesMessage(ValidationError, invalid[iban], IBANValidator(), iban)

def test_iban_validator_deconstruct(self):
# Deconstruct method is required for django 1.7+ compatibility.
# Call to the deconstruct method to see if it exists and it doesn't throw an error.
# Call to the required deconstruct method to see if it exists and
# it doesn't throw an error.
IBANValidator().deconstruct()

test_cases = [
Expand Down Expand Up @@ -326,7 +326,6 @@ def test_bic_validator(self):
self.assertRaisesMessage(ValidationError, invalid[bic], BICValidator(), bic)

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.")
Expand Down Expand Up @@ -405,8 +404,8 @@ def test_ean_validator(self):
self.assertRaisesMessage(ValidationError, error_message, validator, value)

def test_ean_validator_deconstruct(self):
# Deconstruct method is required for django 1.7+ compatibility.
# Call to the deconstruct method to see if it exists and it doesn't throw an error.
# Call to the required deconstruct method to see if it exists and
# it doesn't throw an error.
EANValidator().deconstruct()

test_cases = [
Expand Down
3 changes: 1 addition & 2 deletions tests/test_nl/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,11 @@ def test_NLPhoneNumberValidator(self):
self.assert_validator(validators.NLPhoneNumberFieldValidator(), valid, invalid)

def test_NLPhoneNumberValidator_deconstruct(self):
# Deconstruct method is required for django 1.7+ compatibility.
nlphone1 = validators.NLPhoneNumberFieldValidator()
nlphone2 = validators.NLPhoneNumberFieldValidator()
self.assertEqual(nlphone1, nlphone2, msg="NLPhoneNumberFieldValidator are not equal.")

# Call to the deconstruct method to see if it exists.
# Call to the required deconstruct method to see if it exists.
nlphone1.deconstruct()

def test_NLBankAccountNumberFieldValidator(self):
Expand Down

0 comments on commit 2927a30

Please sign in to comment.