Skip to content

Commit

Permalink
bla
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsasha committed Jun 25, 2018
1 parent 8204cbb commit b416f5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions irrd/db/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ def test_object_writing(self, monkeypatch, irrd_database):
parsed_data={'mnt-by': 'MNT-CORRECT', 'source': 'TEST'},
render_rpsl_text=lambda: 'object-text',
ip_version=lambda: 6,
ip_first=IP('2001:db8::'),
ip_last=IP('2001:db8::ffff:ffff:ffff:ffff'),
asn_first=23456,
asn_last=23456,
)
Expand Down
3 changes: 3 additions & 0 deletions irrd/rpsl/tests/test_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ def test_ipv4_address_range_field():
assert parse_result.ip_first == IP('192.0.2.0')
assert parse_result.ip_last == IP('192.0.2.0')

parse_result = field.parse("192.0.2.0 - 192.0.2.126", messages)
assert parse_result.value == "192.0.2.0 - 192.0.2.126"

parse_result = field.parse("192.0.2.0 -192.0.02.126", messages)
assert parse_result.value == "192.0.2.0 - 192.0.2.126"
assert parse_result.ip_first == IP('192.0.2.0')
Expand Down

0 comments on commit b416f5f

Please sign in to comment.