Back to index

python3.2  3.2.2
Public Member Functions
test.test_winreg.RemoteWinregTests Class Reference
Inheritance diagram for test.test_winreg.RemoteWinregTests:
Inheritance graph
Collaboration diagram for test.test_winreg.RemoteWinregTests:
Collaboration graph

List of all members.

Public Member Functions

def test_remote_registry_works
def setUp
def delete_tree

Detailed Description

Definition at line 322 of file

Member Function Documentation

def test.test_winreg.BaseWinregTests.delete_tree (   self,
) [inherited]

Definition at line 54 of file

00055     def delete_tree(self, root, subkey):
00056         try:
00057             hkey = OpenKey(root, subkey, KEY_ALL_ACCESS)
00058         except WindowsError:
00059             # subkey does not exist
00060             return
00061         while True:
00062             try:
00063                 subsubkey = EnumKey(hkey, 0)
00064             except WindowsError:
00065                 # no more subkeys
00066                 break
00067             self.delete_tree(hkey, subsubkey)
00068         CloseKey(hkey)
00069         DeleteKey(root, subkey)

Here is the call graph for this function:

Here is the caller graph for this function:

def test.test_winreg.BaseWinregTests.setUp (   self) [inherited]

Definition at line 49 of file

00050     def setUp(self):
00051         # Make sure that the test key is absent when the test
00052         # starts.
00053         self.delete_tree(HKEY_CURRENT_USER, test_key_name)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 324 of file

00325     def test_remote_registry_works(self):
00326         remote_key = ConnectRegistry(REMOTE_NAME, HKEY_CURRENT_USER)
00327         self._test_all(remote_key)
@unittest.skipUnless(WIN64_MACHINE, "x64 specific registry tests")

Here is the call graph for this function:

The documentation for this class was generated from the following file: