예제 #1
0
파일: test_turtle.py 프로젝트: Yelp/Testify
 def test_call_record(self):
     """Check that calls are recorded"""
     self.leonardo(1, 2, 3, quatro=4)
     T.assert_length(self.leonardo.calls, 1)
     T.assert_call(self.leonardo, 0, 1, 2, 3, quatro=4)
     self.leonardo(5, six=6)
     T.assert_call(self.leonardo, 1, 5, six=6)
예제 #2
0
파일: test_turtle.py 프로젝트: Yelp/Testify
 def test_call(self):
     """Just call a turtle"""
     ret = self.leonardo()
     assert ret
     T.assert_length(self.leonardo.returns, 1)
     T.assert_call(self.leonardo, 0)
     T.assert_equal(ret, self.leonardo.returns[0])