示例#1
0
 def setup(self):
     self.calls = CallList()
     for name in ('name1', 'name2'):
         for args in (('arg1',), ('arg2',)):
             for kwargs in ({'kwarg1': 1}, {'kwarg2': 2}):
                 call = Call(name, args, kwargs, 'return value')
                 self.calls.append(call)
     self.call_count = len(self.calls)
示例#2
0
 def setup(self):
     self.calls = CallList()
     for arg1 in (1, 2):
         for arg2 in (1, 2):
             self.calls.append(Call('name',
                                    (arg1, arg2),
                                    {},
                                    'return_value'))
     self.call_count = len(self.calls)
示例#3
0
 def setup(self):
     self.call = Call('test name',
                      'test args',
                      'test kwargs',
                      'test return_value')
示例#4
0
 def setup(self):
     self.calls = CallList()
     self.calls.append(Call('name', ('arg1',), {}, None))
     self.calls.append(Call('name', ('arg2',), {}, None))
示例#5
0
 def setup(self):
     self.calls = CallList()
     self.calls.append(Call('name1', (), {}, None))
     self.calls.append(Call('name2', (), {}, None))
示例#6
0
 def setup(self):
     self.calls = CallList()
     for _ in range(2):
         self.calls.append(Call('name', (), {}, None))
示例#7
0
 def setup(self):
     self.calls = CallList()
     self.calls.append(Call("name", "args", {}, "return_value"))
示例#8
0
 def setup(self):
     self.calls = CallList()
     self.calls.append(Call("name",
                            "args",
                            {'kwarg1' : "arg1", 'kwarg2' : "arg2"},
                            "return_value"))
示例#9
0
 def setup(self):
     self.calls = CallList()
     self.calls.append(Call('test name',
                            'test args',
                            'test kwargs',
                            'test return_value'))