Ejemplo n.º 1
0
 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))
Ejemplo n.º 2
0
 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))
Ejemplo n.º 3
0
 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))
Ejemplo n.º 4
0
 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"))
Ejemplo n.º 5
0
 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'))