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)
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)
def setup(self): self.call = Call('test name', 'test args', 'test kwargs', 'test return_value')
def setup(self): self.calls = CallList() self.calls.append(Call('name', ('arg1',), {}, None)) self.calls.append(Call('name', ('arg2',), {}, None))
def setup(self): self.calls = CallList() self.calls.append(Call('name1', (), {}, None)) self.calls.append(Call('name2', (), {}, None))
def setup(self): self.calls = CallList() for _ in range(2): self.calls.append(Call('name', (), {}, None))
def setup(self): self.calls = CallList() self.calls.append(Call("name", "args", {}, "return_value"))
def setup(self): self.calls = CallList() self.calls.append(Call("name", "args", {'kwarg1' : "arg1", 'kwarg2' : "arg2"}, "return_value"))
def setup(self): self.calls = CallList() self.calls.append(Call('test name', 'test args', 'test kwargs', 'test return_value'))