summaryrefslogtreecommitdiff
path: root/ick2/versionapi_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'ick2/versionapi_tests.py')
-rw-r--r--ick2/versionapi_tests.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/ick2/versionapi_tests.py b/ick2/versionapi_tests.py
index 500d7e6..143e1cc 100644
--- a/ick2/versionapi_tests.py
+++ b/ick2/versionapi_tests.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2017 Lars Wirzenius
+# Copyright (C) 2017-2018 Lars Wirzenius
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@@ -21,16 +21,15 @@ import ick2
class VersionAPITests(unittest.TestCase):
- def create_api(self):
- api = ick2.VersionAPI(None)
- return api
-
def test_returns_version_correcly(self):
+ bloburl = 'https://blobs.example.com'
api = ick2.VersionAPI(None)
+ api.set_blob_service_url(bloburl)
response = api.get_version()
self.assertEqual(
response,
{
'version': ick2.__version__,
+ 'blob_service': bloburl,
}
)