Esempio n. 1
0
 def test_passes_fail(self):
     counter = Fake("counter").expects("set_name").with_args(arg.isinstance(str))
     counter.set_name(25)
Esempio n. 2
0
 def test_passes_fail(self):
     counter = Fake("counter").expects("set_name").with_args(arg.isinstance(str))
     counter.set_name(25)
Esempio n. 3
0
 def test_passes(self):
     counter = Fake("counter").expects("increment").with_args(arg.isinstance(int))
     counter.increment(25)
Esempio n. 4
0
 def test_passes(self):
     counter = Fake("counter").expects("increment").with_args(arg.isinstance(int))
     counter.increment(25)