Пример #1
0
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)
Пример #2
0
 def setUp(self):
     self.api = TumblrAPI()
Пример #3
0
 def __init__(self, oauth_consumer_key, secret_key):
     super(TumblrAPITest, self).__init__()
     self.api = TumblrAPI(oauth_consumer_key, secret_key)