示例#1
0
 def _create_handler(self, argspec=None, doc=None, kwargs_support=False):
     lib = LibraryMock('TEST CASE')
     if kwargs_support:
         lib.run_keyword = lambda name, args, kwargs: None
     else:
         lib.run_keyword = lambda name, args: None
     lib.run_keyword.__name__ = 'run_keyword'
     doc = GetKeywordDocumentation(lib)._handle_return_value(doc)
     argspec = GetKeywordArguments(lib)._handle_return_value(argspec)
     return DynamicHandler(lib, 'mock', RunKeyword(lib), doc, argspec)
示例#2
0
 def _create_handler(self, argspec=None, doc=None):
     doc = GetKeywordDocumentation(lib=None)._handle_return_value(doc)
     argspec = GetKeywordArguments(lib=None)._handle_return_value(argspec)
     return DynamicHandler(LibraryMock('TEST CASE'), 'mock', lambda x: None,
                           doc, argspec)