text: 
  import unittest
  from mongoengine import connect, disconnect
  
  
  class BeatMongoCase(unittest.TestCase):
  
      @classmethod
      def setUpClass(cls):
          connect('mongoenginetest', host='mongomock://localhost')
  
      @classmethod
      def tearDownClass(cls):
          disconnect()