Skip to content

Commit

Permalink
Add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kvesteri committed May 9, 2016
1 parent ac926eb commit 5f28c39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changelog
^^^^^^^^^^^^^^^^^^^

- Fixed domain name validation for numeric domain names (#21, pull request courtesy shaunpud)
- Fixed IBAN validation for Norwegian and Belgian IBANs (#17, pull request courtesy mboelens91)


0.10.0 (2016-01-09)
Expand Down
10 changes: 6 additions & 4 deletions tests/test_iban.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@
import validators


@pytest.mark.parametrize(('value',), [
('GB82WEST12345698765432',),
@pytest.mark.parametrize('value', [
'GB82WEST12345698765432',
'NO9386011117947'
])
def test_returns_true_on_valid_iban(value):
assert validators.iban(value)


@pytest.mark.parametrize(('value',), [
('GB81WEST12345698765432',),
@pytest.mark.parametrize('value', [
'GB81WEST12345698765432',
'NO9186011117947'
])
def test_returns_failed_validation_on_invalid_iban(value):
result = validators.iban(value)
Expand Down

0 comments on commit 5f28c39

Please sign in to comment.