Browse Source

Replace assertEqual(None, *) with assertIsNone in tests

Replace assertEqual(None, *) with assertIsNone in tests to have
more clear messages in case of failure.

Change-Id: If651a433db3e573c3b0b86b2a9f87ab84e65b96b
Closes-bug: #1280522
tags/0.11.0
Shuquan Huang 3 years ago
parent
commit
64c746df38
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      glance_store/tests/unit/test_swift_store.py

+ 1
- 1
glance_store/tests/unit/test_swift_store.py View File

@@ -853,7 +853,7 @@ class SwiftTests(object):
853 853
 
854 854
         self.assertEqual(1, mock_del_obj.call_count)
855 855
         _, kwargs = mock_del_obj.call_args
856
-        self.assertEqual(None, kwargs.get('query_string'))
856
+        self.assertIsNone(kwargs.get('query_string'))
857 857
 
858 858
     def test_delete_with_reference_params(self):
859 859
         """

Loading…
Cancel
Save