Description: nose is being deprecated hence remove its usage
Author: Nilesh Patra <nilesh@debian.org>
Last-Update: 2022-03-29
--- a/tests/test_cache_object.py
+++ b/tests/test_cache_object.py
@@ -28,7 +28,7 @@ def notest_cache_fetch_google():
         "Expected local file to be named %s but got %s" % (
             TEST_FILENAME, path)
     assert exists(path), "File not found: %s" % path
-    eq_(path, cache.local_path(TEST_URL, filename=TEST_FILENAME))
+    assert(path == cache.local_path(TEST_URL, filename=TEST_FILENAME))
 
 
 @patch('datacache.cache.download._download_and_decompress_if_necessary')
--- a/tests/test_db_from_dataframes.py
+++ b/tests/test_db_from_dataframes.py
@@ -18,10 +18,10 @@ def test_database_from_dataframes():
             subdir="test_datacache")
         cursor_A = db.execute("SELECT * FROM A")
         results_A = cursor_A.fetchall()
-        eq_(results_A, [(1, "a"), (2, "b"), (3, "c")])
+        assert(results_A == [(1, "a"), (2, "b"), (3, "c")])
         cursor_B = db.execute("SELECT * FROM B")
         results_B = cursor_B.fetchall()
-        eq_(results_B, [("nuzzle",), ("ruzzle",)])
+        assert(results_B == [("nuzzle",), ("ruzzle",)])
 
 def test_database_from_single_dataframe():
     with NamedTemporaryFile(suffix="test.db") as f:
@@ -34,4 +34,4 @@ def test_database_from_single_dataframe(
             subdir="test_datacache")
         cursor = db.execute("SELECT * FROM A")
         results = cursor.fetchall()
-        eq_(results, [(1, "a"), (2, "b"), (3, "c")])
+        assert(results == [(1, "a"), (2, "b"), (3, "c")])
--- a/tests/test_database_objects.py
+++ b/tests/test_database_objects.py
@@ -30,11 +30,11 @@ def make_table_object():
 
 def test_database_table_object():
     table = make_table_object()
-    eq_(table.name, TABLE_NAME)
-    eq_(table.indices, INDICES)
-    eq_(table.nullable, NULLABLE)
-    eq_(table.rows, ROWS)
-    eq_(table.indices, INDICES)
+    assert(table.name == TABLE_NAME)
+    assert(table.indices == INDICES)
+    assert(table.nullable == NULLABLE)
+    assert(table.rows == ROWS)
+    assert(table.indices == INDICES)
 
 def test_create_db():
     with tempfile.NamedTemporaryFile(suffix="test.db") as f:
@@ -50,4 +50,4 @@ def test_create_db():
         cursor = db.connection.execute(sql)
         int_result_tuple = cursor.fetchone()
         int_result = int_result_tuple[0]
-        eq_(int_result, 2)
+        assert(int_result == 2)
