Skip to content

Commit 5f28c39

Browse files
committed
Add more tests
1 parent ac926eb commit 5f28c39

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎CHANGES.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Changelog
66
^^^^^^^^^^^^^^^^^^^
77

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

1011

1112
0.10.0 (2016-01-09)

‎tests/test_iban.py‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@
44
import validators
55

66

7-
@pytest.mark.parametrize(('value',), [
8-
('GB82WEST12345698765432',),
7+
@pytest.mark.parametrize('value', [
8+
'GB82WEST12345698765432',
9+
'NO9386011117947'
910
])
1011
def test_returns_true_on_valid_iban(value):
1112
assert validators.iban(value)
1213

1314

14-
@pytest.mark.parametrize(('value',), [
15-
('GB81WEST12345698765432',),
15+
@pytest.mark.parametrize('value', [
16+
'GB81WEST12345698765432',
17+
'NO9186011117947'
1618
])
1719
def test_returns_failed_validation_on_invalid_iban(value):
1820
result = validators.iban(value)

0 commit comments

Comments
 (0)