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