diff options
author | Thomas Duval <thomas.duval@orange.com> | 2018-06-19 16:13:31 +0200 |
---|---|---|
committer | Thomas Duval <thomas.duval@orange.com> | 2018-06-19 16:30:55 +0200 |
commit | 2dbe655587ca98b67c1a3e3798c63fd47229adc0 (patch) | |
tree | df374b5378225c9946ec0c97968bfa591fb9f9b6 /moon_interface/tests | |
parent | d28f8e68ac176a15dbbd7873f757f5a9f221d118 (diff) |
Update code to 4.5 official version
Change-Id: I5075da0e2a3247ae1564f21b358748f482b75aa4
Diffstat (limited to 'moon_interface/tests')
-rw-r--r-- | moon_interface/tests/unit_python/api/test_authz.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/moon_interface/tests/unit_python/api/test_authz.py b/moon_interface/tests/unit_python/api/test_authz.py index 052bc9c9..a227a303 100644 --- a/moon_interface/tests/unit_python/api/test_authz.py +++ b/moon_interface/tests/unit_python/api/test_authz.py @@ -23,7 +23,8 @@ def test_authz_true(context): assert "result" in data assert data['result'] is True -def test_authz_False(context): + +def test_authz_false(context): import moon_interface.server server = moon_interface.server.create_server() client = server.app.test_client() @@ -48,7 +49,7 @@ def test_authz_effect_unset(context, set_consul_and_db): set_consul_and_db.register_uri( 'POST', 'http://127.0.0.1:8081/authz', - content = conftest.get_pickled_context_invalid() + content=conftest.get_pickled_context_invalid() ) req = client.get("/authz/{p_id}/{s_id}/{o_id}/{a_id}".format( @@ -63,6 +64,7 @@ def test_authz_effect_unset(context, set_consul_and_db): assert "result" in data assert data['result'] is False + def test_authz_invalid_ip(context, set_consul_and_db): import moon_interface.server server = moon_interface.server.create_server() |