def test_agent_based_auth(self): obj = Auth() public_key = 'test_public' private_key = 'test_private' obj.agent(public_key, private_key) assert_equal(obj._public_key, public_key) assert_equal(obj._private_key, private_key) assert_equal(obj._auth_method, u'agent')
def test_transform_based_auth(self): obj = Auth() task_id = 'test_public' session_id = 'test_private' auth_method = u'transform' obj.agent(task_id, session_id, auth_method) assert_equal(obj._public_key, task_id) assert_equal(obj._private_key, session_id) assert_equal(obj._auth_method, u'transform')