def setUp(self): super(TestTasks, self).setUp() TestTasks.create_index(FakeDjangoMappingType.get_index()) reset_model_cache()
def tearDown(self): super(IndexableTest, self).tearDown() IndexableTest.cleanup_index(FakeDjangoMappingType.get_index()) reset_model_cache()