def get_default_metaschema():
 try:
  return models.MetaSchema.find()[0]
 except IndexError:
  ensure_schemas()
  return models.MetaSchema.find()[0]

def get_default_metaschema ( ) : try : return models . MetaSchema . find ( ) [ 0 ] except IndexError : ensure_schemas ( ) return models . MetaSchema . find ( ) [ 0 ]
this needs to be a method so it gets called after the test database is set up .