Module Expr Str Import alias FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpAdd Str NameLoad Return Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad decorator_list
N/A N/A Utility functions or the cmdlib test framework N/A mock patchModule N/A N/A module_under_test mock_module N/A kwargs N/A N/A Computes the module prefix required to mock parts of the Ganeti code.

  @type module_under_test: string
  @param module_under_test: the module within cmdlib which is tested. The
        "ganeti.cmdlib" prefix is optional.
  @type mock_module
  @param mock_module: the module which should be mocked.

   N/A N/A N/A N/A module_under_test startswith ganeti.cmdlib N/A N/A module_under_test N/A ganeti.cmdlib. module_under_test N/A N/A N/A mock patch N/A %s.%s N/A module_under_test mock_module kwargs N/A