def test_get_route(self): context = ExecutionContext(user=self.plugin_info['1']['user'], plugin=self.plugin_info['1']['plugin']) login_user(self.plugin_info['1']['user']) manager = PluginManager(context) response = manager.call_route_handler(self.plugin_info['1']['views']['test'].hashkey, "get", {}, None) logout_user() self.assertEqual(response.status_code, 200)
def test_get_route(self): context = ExecutionContext(user=self.plugin_info['1']['user'], plugin=self.plugin_info['1']['plugin']) login_user(self.plugin_info['1']['user']) manager = PluginManager(context) response = manager.call_route_handler( self.plugin_info['1']['views']['test'].hashkey, "get", {}, None) logout_user() self.assertEqual(response.status_code, 200)