Fix tests for py3, enable tearDown

This commit is contained in:
twangboy 2018-04-17 13:59:12 -06:00
parent 3cf4ac1475
commit ae8ab2ab1a
No known key found for this signature in database
GPG key ID: 93FF3BDEB278C9EB

View file

@ -33,7 +33,7 @@ class RegTest(ModuleCase, SaltReturnAssertsMixin):
Reg state module tests
These tests are destructive as the modify the registry
'''
def skip_tearDown(self):
def tearDown(self):
reg.delete_key_recursive(hive='HKLM',
key=FAKE_KEY)
reg.delete_key_recursive(hive='HKLM',
@ -189,7 +189,7 @@ class RegTest(ModuleCase, SaltReturnAssertsMixin):
'vname': 'test_reg_binary',
'success': True,
'hive': 'HKLM',
'vdata': test_data,
'vdata': test_data.encode('utf-8'),
'key': FAKE_KEY}
self.assertEqual(ret, expected)