Exemplo n.º 1
0
    def test_more_than_maximum(self):
        parameter = Parameter(5, 10)

        with self.assertRaises(ValueError):
            parameter.value = 11
Exemplo n.º 2
0
    def test_less_than_minimum(self):
        parameter = Parameter(5, 10)

        with self.assertRaises(ValueError):
            parameter.value = 4