diff options
author | Kali Kaneko <kali@leap.se> | 2017-02-15 01:53:01 +0100 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-02-15 02:44:51 +0100 |
commit | 6d7dd39fb3d4f138595f885d19315008d13f8907 (patch) | |
tree | 97f361f7f66bd51f6d142878ad9a6952a06da544 /testing/tests/server/test__server_info.py | |
parent | 5c6fe9dc71d2e47f4698acf550b9fd16ce86637b (diff) |
[tests] fix tests
Diffstat (limited to 'testing/tests/server/test__server_info.py')
-rw-r--r-- | testing/tests/server/test__server_info.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testing/tests/server/test__server_info.py b/testing/tests/server/test__server_info.py index 80770721..40567ef1 100644 --- a/testing/tests/server/test__server_info.py +++ b/testing/tests/server/test__server_info.py @@ -31,9 +31,13 @@ class ServerInfoTestCase(unittest.TestCase): def test_blobs_enabled(self): resource = ServerInfo(True) response = resource.render(DummyRequest([''])) - self.assertEquals(json.loads(response), {'blobs': True}) + _info = json.loads(response) + self.assertEquals(_info['blobs'], True) + self.assertTrue(isinstance(_info['version'], basestring)) def test_blobs_disabled(self): resource = ServerInfo(False) response = resource.render(DummyRequest([''])) - self.assertEquals(json.loads(response), {'blobs': False}) + _info = json.loads(response) + self.assertEquals(_info['blobs'], False) + self.assertTrue(isinstance(_info['version'], basestring)) |