def setUp(self):
        super(TestBlog, self).setUp()

        if not hasattr(self, 'blogger'):
            self.credentials_for('blogger')
            try:
                typepad.client.batch_request()
                try:
                    self.blogger = typepad.User.get_self()
                    self.blogs = self.blogger.blogs
                finally:
                    typepad.client.complete_batch()

                try:
                    self.blog = self.blogs[0]
                except (IndexError, __HOLE__):
                    self.blog = None
            finally:
                self.clear_credentials()
dataset/ETHPy150Open typepad/python-typepad-api/tests/test_typepad.py/TestBlog.setUp