telemetry.unittest.system_stub
index
telemetry/unittest/system_stub.py

Provides stubs for os, sys and subprocess for testing
 
This test allows one to test code that itself uses os, sys, and subprocess.

 
Modules
       
os
re
sys
shlex

 
Classes
       
__builtin__.object
AdbCommandsModuleStub
OsModuleStub
Override
SubprocessModuleStub
SysModuleStub

 
class AdbCommandsModuleStub(__builtin__.object)
     Methods defined here:
GetAttachedDevices(self)
__init__(self)

Static methods defined here:
HasForwarder(_=None)
IsAndroidSupported()

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
AdbCommandsStub = <class 'telemetry.unittest.system_stub.AdbCommandsStub'>

 
class OsModuleStub(__builtin__.object)
     Methods defined here:
__init__(self, sys_module=<module 'sys' (built-in)>)
getenv(self, name)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
OsPathModuleStub = <class 'telemetry.unittest.system_stub.OsPathModuleStub'>

 
class Override(__builtin__.object)
     Methods defined here:
Restore(self)
__del__(self)
__init__(self, base_module, module_list)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class SubprocessModuleStub(__builtin__.object)
     Methods defined here:
__init__(self)
call(self, *args, **kwargs)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
PopenStub = <class 'telemetry.unittest.system_stub.PopenStub'>

 
class SysModuleStub(__builtin__.object)
     Methods defined here:
__init__(self)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)