diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-07-26 05:11:40 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-07-26 05:18:07 +0000 |
commit | 2e650c1f5f2f79e7db10dec5dcdd1cffcaf47891 (patch) | |
tree | 82f2949088d2502e947b83ba9973de54f9bf4402 /tests/nvme_copy_test.py | |
parent | Releasing debian version 2.0-1. (diff) | |
download | nvme-cli-2e650c1f5f2f79e7db10dec5dcdd1cffcaf47891.tar.xz nvme-cli-2e650c1f5f2f79e7db10dec5dcdd1cffcaf47891.zip |
Merging upstream version 2.1~rc0 (Closes: #1015722).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/nvme_copy_test.py')
-rw-r--r-- | tests/nvme_copy_test.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/nvme_copy_test.py b/tests/nvme_copy_test.py index 8bee555..12676ea 100644 --- a/tests/nvme_copy_test.py +++ b/tests/nvme_copy_test.py @@ -13,7 +13,6 @@ NVMe Copy Testcase:- """ -from nose.tools import assert_equal from nvme_test import TestNVMe @@ -28,18 +27,18 @@ class TestNVMeCopy(TestNVMe): - test_log_dir : directory for logs, temp files. """ - def __init__(self): + def setUp(self): """ Pre Section for TestNVMeCopy """ - TestNVMe.__init__(self) + super().setUp() self.start_block = 0 self.range = 1 self.slbs = 1 self.namespace = 1 self.setup_log_dir(self.__class__.__name__) - def __del__(self): + def tearDown(self): """ Post Section for TestNVMeCopy """ - TestNVMe.__del__(self) + super().tearDown() def copy(self): """ Wrapper for nvme copy @@ -57,4 +56,4 @@ class TestNVMeCopy(TestNVMe): def test_copy(self): """ Testcase main """ - assert_equal(self.copy(), 0) + self.assertEqual(self.copy(), 0) |