class TumblrAPITest(unittest.TestCase): def __init__(self, oauth_consumer_key, secret_key): super(TumblrAPITest, self).__init__() self.api = TumblrAPI(oauth_consumer_key, secret_key) def setUp(self): self.api = TumblrAPI() def test_blog_info(self): blog_name = 'ejesse' blog = self.api.get_blog_info(blog_name) self.assertEqual(blog.name, blog_name)
def setUp(self): self.api = TumblrAPI()
def __init__(self, oauth_consumer_key, secret_key): super(TumblrAPITest, self).__init__() self.api = TumblrAPI(oauth_consumer_key, secret_key)