def setUp(self): AppTestCase.setUp(self) session = self.db_slave_session session.add(ApiKey(valid_key='test')) session.add(ApiKey(valid_key='test.test')) session.commit()
def setUp(self): AppTestCase.setUp(self) request = DummyRequest() self.config = setUp(request=request)
def tearDown(self): tearDown() AppTestCase.tearDown(self)
def setUp(self): AppTestCase.setUp(self) self.url = '/v1/geolocate' self.metric = 'geolocate' self.metric_url = 'request.v1.geolocate'