<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import <EOL> from __future__ import division <EOL> from __future__ import print_function <EOL> import unittest <EOL> import phldef_conduit <EOL> import phlsys_conduit <EOL> class Test ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> pass <EOL> def tearDown ( self ) : <EOL> pass <EOL> def test_can_ping ( self ) : <EOL> test_data = phldef_conduit <EOL> conduit = phlsys_conduit . Conduit ( <EOL> test_data . TEST_URI , <EOL> test_data . ALICE . user , <EOL> test_data . ALICE . certificate ) <EOL> conduit . ping ( ) <EOL> def test_can_list_reviews ( self ) : <EOL> test_data = phldef_conduit <EOL> conduit = phlsys_conduit . Conduit ( <EOL> test_data . TEST_URI , <EOL> test_data . ALICE . user , <EOL> test_data . ALICE . certificate ) <EOL> conduit ( "<STR_LIT>" ) <EOL> def test_can_act_as_user ( self ) : <EOL> test_data = phldef_conduit <EOL> conduit = phlsys_conduit . Conduit ( <EOL> test_data . TEST_URI , <EOL> test_data . PHAB . user , <EOL> test_data . PHAB . certificate ) <EOL> with phlsys_conduit . act_as_user_context ( conduit , test_data . ALICE . user ) : <EOL> conduit ( "<STR_LIT>" ) <EOL> def test_raises_on_non_auth ( self ) : <EOL> test_data = phldef_conduit <EOL> self . assertRaises ( <EOL> phlsys_conduit . ConduitException , <EOL> phlsys_conduit . Conduit , <EOL> test_data . TEST_URI , <EOL> "<STR_LIT>" , <EOL> test_data . ALICE . certificate ) <EOL> def test_multiconduit_breathing ( self ) : <EOL> test_data = phldef_conduit <EOL> conduit = phlsys_conduit . MultiConduit ( <EOL> test_data . TEST_URI , <EOL> test_data . PHAB . user , <EOL> test_data . PHAB . certificate ) <EOL> self . assertEqual ( conduit . conduit_uri , test_data . TEST_URI ) <EOL> conduit ( "<STR_LIT>" ) <EOL> as_user_conduit = phlsys_conduit . CallMultiConduitAsUser ( conduit , '<STR_LIT>' ) <EOL> as_user_conduit ( "<STR_LIT>" ) </s>
