def test_main(self): with app.app_context(): app.config["MEDIA_DIRS"] = [] lola = Indexer(app.config) nose.eq_(lola.run(), None)
def test_main(self): with app.app_context(): app.config['MEDIA_DIRS'] = [] lola = Indexer(app.config) nose.eq_(lola.run(), None)
def test_options_method_returns_json_response(self): with app.app_context(): resource = http.Resource() nose.assert_true(isinstance(resource.options(), http.JSONResponse))