Exemplo n.º 1
0
    def setUp(self):
        BaseViewTest.setUp(self)
        self.epoch = datetime.datetime(1970, 1, 1, 0, 0, 0, 1).isoformat()
        self.nowish = datetime.datetime.utcnow().isoformat()

        conn = mongokit.Connection(TestingConfig.MONGODB_HOST,
                                   TestingConfig.MONGODB_PORT)
        conn.test.drop_collection('pq_foo')
Exemplo n.º 2
0
 def setUp(self):
     BaseViewTest.setUp(self)
     # Don't mock out the error module.
     errors = mod.model.errors
     mod.model = Dingus()
     mod.model.errors = errors