Fix test_restore_dataclass

Signed-off-by: Frank Kunz <mailinglists@kunz-im-inter.net>
pull/547/head
Frank Kunz 2022-09-14 20:38:30 +02:00
rodzic 05f7b9bbf0
commit c792c1bd69
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -61,8 +61,8 @@ class TestCases(unittest.TestCase):
self.settings_1.store_dataclass("SectionX", illegal_config)
def test_restore_dataclass(self):
tc_1 = self.settings_1.restore_dataclass("Section1", TConfig())
tc_2 = self.settings_1.restore_dataclass("Section2", TConfig())
tc_1 = self.settings_1.restore_dataclass("Section1", self.config_1)
tc_2 = self.settings_1.restore_dataclass("Section2", self.config_2)
self.assertNotEqual(tc_1, tc_2)
self.assertEqual(tc_1, self.config_1)
self.assertEqual(tc_2, self.config_2)