コード例 #1
0
 def test_raises_no_player_position_set_exception(self):
     request = ApiWrapper(get_fake_conf()).create_request()
     request.get_inventory(test='awesome')
     with self.assertRaises(NoPlayerPositionSetException):
         request.call()
コード例 #2
0
 def test_raises_no_player_position_set_exception(self):
     request = ApiWrapper().create_request()
     request.get_inventory(test='awesome')
     with self.assertRaises(NoPlayerPositionSetException):
         request.call()
コード例 #3
0
 def test_api_call_with_no_requests_set(self):
     request = ApiWrapper().create_request()
     with self.assertRaises(EmptySubrequestChainException):
         request.call()
コード例 #4
0
 def test_api_call_with_no_requests_set(self):
     api = ApiWrapper(PGoApi())
     with self.assertRaises(RuntimeError):
         api.call()
コード例 #5
0
 def test_raises_not_logged_in_exception(self):
     api = ApiWrapper(PGoApi())
     api.get_inventory(test='awesome')
     with self.assertRaises(NotLoggedInException):
         api.call()
コード例 #6
0
 def test_api_call_with_no_requests_set(self):
     request = ApiWrapper().create_request()
     with self.assertRaises(EmptySubrequestChainException):
         request.call()