From f1efa97edc3149e0df7039e724e7c959558ea553 Mon Sep 17 00:00:00 2001 From: Anthony Ruhier Date: Wed, 7 Jun 2017 10:24:36 +0200 Subject: [PATCH] Back to 100% coverage Test url schema correction in NetboxAPI --- tests/test_api.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_api.py b/tests/test_api.py index 7499bf5..1796092 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -16,6 +16,12 @@ class TestNetboxAPI(): def prepared_api(self): return NetboxAPI(self.url) + def test_url_sanitizer(self): + complete_schema_url_netbox_api = NetboxAPI("http://test/api").url + no_schema_url_netbox_api = NetboxAPI("test/api/").url + + assert complete_schema_url_netbox_api == no_schema_url_netbox_api + def test_build_model_route(self, prepared_api): app = "test_app" model = "test_model"