4823: Add root_collection() to make it easier to find the root. Adjusted
[arvados.git] / sdk / python / tests / test_api.py
index 97d3e2c7b6e8c520efce9cc278c6024a53128e31..4d03ae7744814f8629edd0b9cc37be7d9b41269c 100644 (file)
@@ -52,6 +52,14 @@ class ArvadosApiClientTest(unittest.TestCase):
     def tearDownClass(cls):
         run_test_server.stop()
 
+    def test_new_api_objects_with_cache(self):
+        clients = [arvados.api('v1', cache=True,
+                               host=os.environ['ARVADOS_API_HOST'],
+                               token='discovery-doc-only-no-token-needed',
+                               insecure=True)
+                   for index in [0, 1]]
+        self.assertIsNot(*clients)
+
     def test_basic_list(self):
         answer = self.api.humans().list(
             filters=[['uuid', 'is', None]]).execute()