def test_delete_key_recursive_key_not_found(self): """ Test the delete_key_recursive function when the passed key to delete is not found. """ self.assertFalse(reg.key_exists(hive="HKLM", key=FAKE_KEY)) self.assertFalse(reg.delete_key_recursive(hive="HKLM", key=FAKE_KEY))
def test_key_exists_non_existing(self): """ Tests the key_exists function using a non existing registry key """ self.assertFalse(reg.key_exists(hive="HKLM", key=FAKE_KEY))
def test_key_exists_non_existing(self): ''' Tests the key_exists function using a non existing registry key ''' self.assertFalse(reg.key_exists(hive='HKLM', key=FAKE_KEY))
def test_key_exists_existing(self): """ Tests the key_exists function using a well known registry key """ self.assertTrue(reg.key_exists(hive="HKLM", key="SOFTWARE\\Microsoft"))
def test_key_exists_existing(self): ''' Tests the key_exists function using a well known registry key ''' self.assertTrue(reg.key_exists(hive='HKLM', key='SOFTWARE\\Microsoft'))