Explorar o código

Add a library version test

Enis Afgan %!s(int64=10) %!d(string=hai) anos
pai
achega
c621bc7c94
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      test/test_interface.py

+ 8 - 0
test/test_interface.py

@@ -1,3 +1,4 @@
+import cloudbridge
 from cloudbridge.cloud import interfaces
 from test.helpers import ProviderTestBase
 
@@ -30,3 +31,10 @@ class CloudInterfaceTestCase(ProviderTestBase):
         self.assertFalse(
             self.provider.has_service("NON_EXISTENT_SERVICE"),
             "has_service should not return True for a non-existent service")
+
+    def test_library_version(self):
+        """
+        Check that the library version can be retrieved.
+        """
+        self.assertIsNotNone(cloudbridge.get_version(),
+                             "Did not get library version.")