def testGetAccessTokenPrePop(self):
     client = AppurifyClient(access_token="Already_Set")
     client.refreshAccessToken()
     access_token = client.access_token
     self.assertEqual(access_token, "Already_Set", "Should return access token when one is provided")
 def testNoAuth(self):
     client = AppurifyClient()
     with self.assertRaises(AppurifyClientError):
         """ Should error out on no auth data """
         client.refreshAccessToken()
 def testGetAccessToken(self):
     client = AppurifyClient(api_key="test_key", api_secret="test_secret")
     client.refreshAccessToken()
     access_token = client.access_token
     self.assertEqual(access_token, "test_access_token", "Should return proper access token on post")