]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test_volume_client: simplify test_get_authorized_ids()
authorRishabh Dave <ridave@redhat.com>
Mon, 20 May 2019 09:30:07 +0000 (11:30 +0200)
committerRishabh Dave <ridave@redhat.com>
Mon, 20 May 2019 09:30:07 +0000 (11:30 +0200)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/cephfs/test_volume_client.py

index 06094dd6fe988f90f2efc441e7494724debd2655..95e4a212809c834a5796a065017ed9103f72d46f 100644 (file)
@@ -686,8 +686,7 @@ vc.disconnect()
             volume_id=volume_id,
         )))
         # Check the list of authorized IDs for the volume.
-        expected_result = None
-        self.assertEqual(str(expected_result), auths)
+        self.assertEqual('None', auths)
 
         # Allow two auth IDs access to the volume.
         auths = self._volume_client_python(volumeclient_mount, dedent("""
@@ -724,8 +723,7 @@ vc.disconnect()
             guest_entity_2=guest_entity_2,
         )))
         # Check the list of authorized IDs for the volume.
-        expected_result = None
-        self.assertItemsEqual(str(expected_result), auths)
+        self.assertEqual('None', auths)
 
     def test_multitenant_volumes(self):
         """