<s> import mongoengine <EOL> from st2common . models import db <EOL> from st2common . models . db import stormbase <EOL> from st2common . persistence . base import Access <EOL> class FakeModelDB ( stormbase . StormBaseDB ) : <EOL> context = stormbase . EscapedDictField ( ) <EOL> index = mongoengine . IntField ( min_value = <NUM_LIT:0> ) <EOL> category = mongoengine . StringField ( ) <EOL> timestamp = mongoengine . DateTimeField ( ) <EOL> class FakeModel ( Access ) : <EOL> impl = db . MongoDBAccess ( FakeModelDB ) <EOL> @ classmethod <EOL> def _get_impl ( cls ) : <EOL> return cls . impl </s>
