diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-07-26 05:11:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-07-26 05:11:33 +0000 |
commit | a751023422eadf87cd8d6484878193a4914a9d85 (patch) | |
tree | 3fca0ae6325173fc2583e7d88abe4c38e6193277 /tests/nvme_fw_log_test.py | |
parent | Adding upstream version 2.0. (diff) | |
download | nvme-cli-a751023422eadf87cd8d6484878193a4914a9d85.tar.xz nvme-cli-a751023422eadf87cd8d6484878193a4914a9d85.zip |
Adding upstream version 2.1~rc0.upstream/2.1_rc0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/nvme_fw_log_test.py')
-rw-r--r-- | tests/nvme_fw_log_test.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/nvme_fw_log_test.py b/tests/nvme_fw_log_test.py index c07ab84..b670671 100644 --- a/tests/nvme_fw_log_test.py +++ b/tests/nvme_fw_log_test.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# # Copyright (c) 2015-2016 Western Digital Corporation or its affiliates. # # This program is free software; you can redistribute it and/or @@ -26,7 +28,6 @@ NVMe Firmware Log Testcase :- import subprocess -from nose.tools import assert_equal from nvme_test import TestNVMe @@ -36,18 +37,18 @@ class TestNVMeFwLogCmd(TestNVMe): Represents NVMe Firmware Log test. """ - def __init__(self): + def setUp(self): """ Pre Section for TestNVMeFwLogCmd. """ - TestNVMe.__init__(self) + super().setUp() self.setup_log_dir(self.__class__.__name__) - def __del__(self): + def tearDown(self): """ Post Section for TestNVMeSimpleTestTemplate. - Call super class's destructor. """ - TestNVMe.__del__(self) + super().tearDown() def get_fw_log(self): """ Wrapper for executing nvme fw-log. @@ -69,4 +70,4 @@ class TestNVMeFwLogCmd(TestNVMe): def test_fw_log(self): """ Testcase main """ - assert_equal(self.get_fw_log(), 0) + self.assertEqual(self.get_fw_log(), 0) |