def test_create_action_should_have_form(self): context = build_unauthorized_context() resource = buildresource.user_template(context) action = resource.actions['create'] self.assertGreater(len(action.form), 0)
def test_should_have_create_action(self): context = build_unauthorized_context() resource = buildresource.user_template(context) self.assertIn('create', resource.actions)