2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
3 <html><head><title>Python: module telemetry.unittest.system_stub</title>
4 </head><body bgcolor="#f0f0f8">
6 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
8 <td valign=bottom> <br>
9 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.unittest.html"><font color="#ffffff">unittest</font></a>.system_stub</strong></big></big></font></td
10 ><td align=right valign=bottom
11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/unittest/system_stub.py">telemetry/unittest/system_stub.py</a></font></td></tr></table>
12 <p><tt>Provides stubs for os, sys and subprocess for testing<br>
14 This test allows one to test code that itself uses os, sys, and subprocess.</tt></p>
16 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
17 <tr bgcolor="#aa55cc">
18 <td colspan=3 valign=bottom> <br>
19 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
21 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
22 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="os.html">os</a><br>
23 </td><td width="25%" valign=top><a href="re.html">re</a><br>
24 </td><td width="25%" valign=top><a href="sys.html">sys</a><br>
25 </td><td width="25%" valign=top><a href="shlex.html">shlex</a><br>
26 </td></tr></table></td></tr></table><p>
27 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
28 <tr bgcolor="#ee77aa">
29 <td colspan=3 valign=bottom> <br>
30 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
32 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
34 <dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
37 <dt><font face="helvetica, arial"><a href="telemetry.unittest.system_stub.html#AdbCommandsModuleStub">AdbCommandsModuleStub</a>
38 </font></dt><dt><font face="helvetica, arial"><a href="telemetry.unittest.system_stub.html#OsModuleStub">OsModuleStub</a>
39 </font></dt><dt><font face="helvetica, arial"><a href="telemetry.unittest.system_stub.html#Override">Override</a>
40 </font></dt><dt><font face="helvetica, arial"><a href="telemetry.unittest.system_stub.html#SubprocessModuleStub">SubprocessModuleStub</a>
41 </font></dt><dt><font face="helvetica, arial"><a href="telemetry.unittest.system_stub.html#SysModuleStub">SysModuleStub</a>
46 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
47 <tr bgcolor="#ffc8d8">
48 <td colspan=3 valign=bottom> <br>
49 <font color="#000000" face="helvetica, arial"><a name="AdbCommandsModuleStub">class <strong>AdbCommandsModuleStub</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
51 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
52 <td width="100%">Methods defined here:<br>
53 <dl><dt><a name="AdbCommandsModuleStub-GetAttachedDevices"><strong>GetAttachedDevices</strong></a>(self)</dt></dl>
55 <dl><dt><a name="AdbCommandsModuleStub-__init__"><strong>__init__</strong></a>(self)</dt></dl>
58 Static methods defined here:<br>
59 <dl><dt><a name="AdbCommandsModuleStub-HasForwarder"><strong>HasForwarder</strong></a>(_<font color="#909090">=None</font>)</dt></dl>
61 <dl><dt><a name="AdbCommandsModuleStub-IsAndroidSupported"><strong>IsAndroidSupported</strong></a>()</dt></dl>
64 Data descriptors defined here:<br>
65 <dl><dt><strong>__dict__</strong></dt>
66 <dd><tt>dictionary for instance variables (if defined)</tt></dd>
68 <dl><dt><strong>__weakref__</strong></dt>
69 <dd><tt>list of weak references to the object (if defined)</tt></dd>
72 Data and other attributes defined here:<br>
73 <dl><dt><strong>AdbCommandsStub</strong> = <class 'telemetry.unittest.system_stub.AdbCommandsStub'></dl>
75 </td></tr></table> <p>
76 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
77 <tr bgcolor="#ffc8d8">
78 <td colspan=3 valign=bottom> <br>
79 <font color="#000000" face="helvetica, arial"><a name="OsModuleStub">class <strong>OsModuleStub</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
81 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
82 <td width="100%">Methods defined here:<br>
83 <dl><dt><a name="OsModuleStub-__init__"><strong>__init__</strong></a>(self, sys_module<font color="#909090">=<module 'sys' (built-in)></font>)</dt></dl>
85 <dl><dt><a name="OsModuleStub-getenv"><strong>getenv</strong></a>(self, name)</dt></dl>
88 Data descriptors defined here:<br>
89 <dl><dt><strong>__dict__</strong></dt>
90 <dd><tt>dictionary for instance variables (if defined)</tt></dd>
92 <dl><dt><strong>__weakref__</strong></dt>
93 <dd><tt>list of weak references to the object (if defined)</tt></dd>
96 Data and other attributes defined here:<br>
97 <dl><dt><strong>OsPathModuleStub</strong> = <class 'telemetry.unittest.system_stub.OsPathModuleStub'></dl>
99 </td></tr></table> <p>
100 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
101 <tr bgcolor="#ffc8d8">
102 <td colspan=3 valign=bottom> <br>
103 <font color="#000000" face="helvetica, arial"><a name="Override">class <strong>Override</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
105 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
106 <td width="100%">Methods defined here:<br>
107 <dl><dt><a name="Override-Restore"><strong>Restore</strong></a>(self)</dt></dl>
109 <dl><dt><a name="Override-__del__"><strong>__del__</strong></a>(self)</dt></dl>
111 <dl><dt><a name="Override-__init__"><strong>__init__</strong></a>(self, base_module, module_list)</dt></dl>
114 Data descriptors defined here:<br>
115 <dl><dt><strong>__dict__</strong></dt>
116 <dd><tt>dictionary for instance variables (if defined)</tt></dd>
118 <dl><dt><strong>__weakref__</strong></dt>
119 <dd><tt>list of weak references to the object (if defined)</tt></dd>
121 </td></tr></table> <p>
122 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
123 <tr bgcolor="#ffc8d8">
124 <td colspan=3 valign=bottom> <br>
125 <font color="#000000" face="helvetica, arial"><a name="SubprocessModuleStub">class <strong>SubprocessModuleStub</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
127 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
128 <td width="100%">Methods defined here:<br>
129 <dl><dt><a name="SubprocessModuleStub-__init__"><strong>__init__</strong></a>(self)</dt></dl>
131 <dl><dt><a name="SubprocessModuleStub-call"><strong>call</strong></a>(self, *args, **kwargs)</dt></dl>
134 Data descriptors defined here:<br>
135 <dl><dt><strong>__dict__</strong></dt>
136 <dd><tt>dictionary for instance variables (if defined)</tt></dd>
138 <dl><dt><strong>__weakref__</strong></dt>
139 <dd><tt>list of weak references to the object (if defined)</tt></dd>
142 Data and other attributes defined here:<br>
143 <dl><dt><strong>PopenStub</strong> = <class 'telemetry.unittest.system_stub.PopenStub'></dl>
145 </td></tr></table> <p>
146 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
147 <tr bgcolor="#ffc8d8">
148 <td colspan=3 valign=bottom> <br>
149 <font color="#000000" face="helvetica, arial"><a name="SysModuleStub">class <strong>SysModuleStub</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
151 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
152 <td width="100%">Methods defined here:<br>
153 <dl><dt><a name="SysModuleStub-__init__"><strong>__init__</strong></a>(self)</dt></dl>
156 Data descriptors defined here:<br>
157 <dl><dt><strong>__dict__</strong></dt>
158 <dd><tt>dictionary for instance variables (if defined)</tt></dd>
160 <dl><dt><strong>__weakref__</strong></dt>
161 <dd><tt>list of weak references to the object (if defined)</tt></dd>
163 </td></tr></table></td></tr></table>