def setUp(self): # NOTE: shared_secret needs to be filled out to run the tests. Deleted because # it shouldn't be in the commit history of a repo that will later be made public. self.shared_secret = 'test' self.config = config self.go_rest_client = GlobusOnlineRestClient(config=self.config) # Random numbers added to avoid overwriting some real user since these # tests may be run against a real server. self.default_username = '******'
def test_issue_request(self): self.config['server'] = 'www.google.com' rest_client = GlobusOnlineRestClient(config=self.config) response, content = rest_client._issue_rest_request('') self.config['server'] = "graph.api.go.sandbox.globuscs.info"