コード例 #1
0
ファイル: test_buildresource.py プロジェクト: 2hdddg/goldfish
    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)
コード例 #2
0
ファイル: test_buildresource.py プロジェクト: 2hdddg/goldfish
    def test_should_have_create_action(self):
        context = build_unauthorized_context()

        resource = buildresource.user_template(context)

        self.assertIn('create', resource.actions)