Skip to content
Snippets Groups Projects
Commit 634d0519 authored by Erik Reid's avatar Erik Reid
Browse files

extra check that should have been in previous branch

parent ae268861
No related branches found
No related tags found
No related merge requests found
......@@ -66,3 +66,5 @@ def test_router_interfaces(router, client):
response = json.loads(rv.data.decode("utf-8"))
jsonschema.validate(response, INTERFACE_LIST_SCHEMA)
assert response # at least shouldn't be empty
response_routers = {ifc['router'] for ifc in response}
assert response_routers == {router}
......@@ -114,4 +114,6 @@ def test_get_all_interfaces(client):
assert rv.is_json
response_data = json.loads(rv.data.decode('utf-8'))
jsonschema.validate(response_data, INTERFACE_LIST_SCHEMA)
assert response_data, 'expected a non-empty list'
response_routers = {ifc['router'] for ifc in response_data}
assert len(response_routers) > 1, \
'there should data from be lots of routers'
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment