コード例 #1
0
ファイル: test_dingus.py プロジェクト: Ciemaar/dingus
 def should_record_calls_on_children(self):
     result = Dingus()
     object_with_result = Dingus(method__returns=result)
     object_with_result.method()
     assert object_with_result.calls('method')
コード例 #2
0
ファイル: test_dingus.py プロジェクト: poiati/dingus
 def should_record_calls_on_children(self):
     result = Dingus()
     object_with_result = Dingus(method__returns=result)
     object_with_result.method()
     assert object_with_result.calls('method')
コード例 #3
0
ファイル: test_dingus.py プロジェクト: Ciemaar/dingus
 def should_define_methods_returning_specified_values(self):
     result = Dingus()
     object_with_result = Dingus(method__returns=result)
     assert object_with_result.method() is result
コード例 #4
0
ファイル: test_dingus.py プロジェクト: poiati/dingus
 def should_define_methods_returning_specified_values(self):
     result = Dingus()
     object_with_result = Dingus(method__returns=result)
     assert object_with_result.method() is result