コード例 #1
0
 def test_typeerror(self, apply_kwargs, myfunc):
     with pytest.raises(TypeError):
         apply_kwargs(myfunc, two='two', four=4)
コード例 #2
0
ファイル: test_util.py プロジェクト: KayneWest/palladium
 def test_typeerror(self, apply_kwargs, myfunc):
     with pytest.raises(TypeError):
         apply_kwargs(myfunc, two='two', four=4)
コード例 #3
0
 def test_it(self, apply_kwargs, myfunc):
     apply_kwargs(myfunc, one=1, two='two', four=4)
     assert myfunc.calls == [(1, 'two', 'three')]
コード例 #4
0
ファイル: test_util.py プロジェクト: KayneWest/palladium
 def test_it(self, apply_kwargs, myfunc):
     apply_kwargs(myfunc, one=1, two='two', four=4)
     assert myfunc.calls == [(1, 'two', 'three')]