Fix assertEquals warning

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-05-13 23:28:58 -04:00
parent 2f998ab4ce
commit d41fe1b701
11 changed files with 62 additions and 62 deletions

View File

@@ -29,7 +29,7 @@ class IndexFilesystemCacheTestCase(BaseTestCase):
def test_set_path_document(self):
self.cache.set_path(path=TEST_PATH, document=self.test_document)
self.assertEquals(
self.assertEqual(
{'document_pk': TEST_DOCUMENT_PK},
self.cache.get_path(path=TEST_PATH)
)
@@ -38,11 +38,11 @@ class IndexFilesystemCacheTestCase(BaseTestCase):
self.cache.set_path(path=TEST_PATH, document=self.test_document)
self.cache.clear_document(document=self.test_document)
self.assertEquals(None, self.cache.get_path(path=TEST_PATH))
self.assertEqual(None, self.cache.get_path(path=TEST_PATH))
def test_set_path_node(self):
self.cache.set_path(path=TEST_PATH, node=self.node)
self.assertEquals(
self.assertEqual(
{'node_pk': TEST_NODE_PK},
self.cache.get_path(path=TEST_PATH)
)
@@ -51,7 +51,7 @@ class IndexFilesystemCacheTestCase(BaseTestCase):
self.cache.set_path(path=TEST_PATH, node=self.node)
self.cache.clear_node(node=self.node)
self.assertEquals(None, self.cache.get_path(path=TEST_PATH))
self.assertEqual(None, self.cache.get_path(path=TEST_PATH))
def test_valid_cache_key_characters(self):
with warnings.catch_warnings(record=True) as warning_list: