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_simple_template_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_simple_template_test.py')
-rw-r--r-- | tests/nvme_simple_template_test.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/nvme_simple_template_test.py b/tests/nvme_simple_template_test.py index b6736da..2adaeb4 100644 --- a/tests/nvme_simple_template_test.py +++ b/tests/nvme_simple_template_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 @@ -27,19 +29,19 @@ class TestNVMeSimpleTestTemplate(TestNVMe): """ Represents Simple NVMe test """ - def __init__(self): + def setUp(self): """ Pre Section for TestNVMeSimpleTestTemplate. """ - TestNVMe.__init__(self) + super().setUp() self.setup_log_dir(self.__class__.__name__) # Add this test specific variables here - def __del__(self): + def tearDown(self): """ Post Section for TestNVMeSimpleTestTemplate Call super class's destructor. """ # Add this test specific cleanup code here - TestNVMe.__del__(self) + super().tearDown() def simple_template_test(self): """ Wrapper for this test specific functions |