class FlaskTestCase(TestCase):

    """Mix-in class for creating the Flask application"""

    def setUp(self):
        self.app = Flask('testapp')
        self.ext = InvenioOAIServer()
        assert 'invenio-oaiserver' not in self.app.extensions
        self.ext.init_app(self.app)
        assert 'invenio-oaiserver' in self.app.extensions

        self.oai_url = "localhost/oai2d"
        self.app.config.setdefault("THEME_SITENAME","Invenio")


    def tearDown(self):
        pass
    def setUp(self):
        self.app = Flask('testapp')
        self.ext = InvenioOAIServer()
        assert 'invenio-oaiserver' not in self.app.extensions
        self.ext.init_app(self.app)
        assert 'invenio-oaiserver' in self.app.extensions

        self.oai_url = "localhost/oai2d"
        self.app.config.setdefault("THEME_SITENAME","Invenio")