示例#1
0
文件: test_reg.py 项目: mcalmer/salt
 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))
示例#2
0
文件: test_reg.py 项目: mcalmer/salt
 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))
示例#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))
示例#4
0
文件: test_reg.py 项目: mcalmer/salt
 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"))
示例#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'))