def __init__(self, *args, **kwargs): super(TestGistAPI, self).__init__(*args, **kwargs) self.api = Gist(opts.get('access_token'))
def test_access_token(self): with self.assertRaises(GistException): Gist('') self.assertIsInstance(self.api, Gist) self.assertIsNotNone(self.api)