'Run before each test method to initialize test environment.'

def setUp(self):

    super(TestMetadefDriver, self).setUp()
    config.parse_args(args=[])
    context_cls = context.RequestContext
    self.adm_context = context_cls(is_admin=True, auth_token='user:user:admin')
    self.context = context_cls(is_admin=False, auth_token='user:user:user')
    self.db_api = db_tests.get_db(self.config)
    db_tests.reset_db(self.db_api)
