Esempio n. 1
0
    def test_negative_create(self):
        """@Test: Don't create an Model with invalid data.

        @Feature: Model

        @Assert: Model is not created.
        """
        for name in invalid_values_list():
            with self.subTest(name):
                with self.assertRaises(CLIReturnCodeError):
                    Model.create({'name': name})
Esempio n. 2
0
    def test_negative_create_with_name(self):
        """Don't create an Model with invalid data.

        @id: b2eade66-b612-47e7-bfcc-6e363023f498

        @Assert: Model is not created.
        """
        for name in invalid_values_list():
            with self.subTest(name):
                with self.assertRaises(CLIReturnCodeError):
                    Model.create({'name': name})
Esempio n. 3
0
    def test_negative_create_with_name(self):
        """Don't create an Model with invalid data.

        @Feature: Model

        @Assert: Model is not created.
        """
        for name in invalid_values_list():
            with self.subTest(name):
                with self.assertRaises(CLIReturnCodeError):
                    Model.create({'name': name})
Esempio n. 4
0
    def test_negative_create_with_name(self):
        """Don't create an Model with invalid data.

        :id: b2eade66-b612-47e7-bfcc-6e363023f498

        :expectedresults: Model is not created.

        :CaseImportance: Critical
        """
        for name in invalid_values_list():
            with self.subTest(name):
                with self.assertRaises(CLIReturnCodeError):
                    Model.create({'name': name})
Esempio n. 5
0
    def test_negative_create_with_name(self, name):
        """Don't create an Model with invalid data.

        :id: b2eade66-b612-47e7-bfcc-6e363023f498

        :parametrized: yes

        :expectedresults: Model is not created.

        :CaseImportance: High
        """
        with pytest.raises(CLIReturnCodeError):
            Model.create({'name': name})
Esempio n. 6
0
    def test_negative_create_with_name(self):
        """Don't create an Model with invalid data.

        :id: b2eade66-b612-47e7-bfcc-6e363023f498

        :expectedresults: Model is not created.

        :CaseImportance: Critical
        """
        for name in invalid_values_list():
            with self.subTest(name):
                with self.assertRaises(CLIReturnCodeError):
                    Model.create({'name': name})