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