def test_verify_fail(self):
     ic = DifferentConstraint(params_checking=False)
     assert not ic.verify(['comp1', 'comp1', 'foo'], {})
 def test_verify_success(self):
     ic = DifferentConstraint(params_checking=False)
     assert ic.verify(['foo', 'bar', 'juj'], {})
Example #3
0
 def test_get_param_names(self):
     assert set(DifferentConstraint.get_param_names()) == set(
         [DifferentConstraint.PARAM_VALUE])
 def test_verify_fail(self):
     ic = DifferentConstraint(params_checking=False)
     assert not ic.verify(['comp1', 'comp1', 'foo'])
 def test_verify_success(self):
     ic = DifferentConstraint(params_checking=False)
     assert ic.verify(['foo', 'bar', 'juj'])
 def test_get_param_names(self):
     assert set(DifferentConstraint.get_param_names()) == set([DifferentConstraint.PARAM_VALUE])