コード例 #1
0
ファイル: test_utils.py プロジェクト: Laufire/ec
  def test_get(self):
    Inputs = 'a', 1
    RIH.values(*Inputs)

    # test the call
    assert(get('str') == Inputs[0])

    assert(get('int', type=int) == Inputs[1])
コード例 #2
0
ファイル: test_inscript_calls.py プロジェクト: Laufire/ec
 def test_ec_call(self):
   r"""Test ec.call with partial arguments
   """
   RIH.values(2, 3)
   assert(call(task1, arg1=1) == (1, 2))
コード例 #3
0
ファイル: test_interface.py プロジェクト: Laufire/ec
  def test_call_with_input(self):
    from support.helpers import RawInputHook as RIH
    RIH.values(2, 3)

    assert(interface.call('task1 arg1=1', True) == (1, 2))