def test_Variable_sub(): var = Variable('test', rvalues=['a+b']) var.resolved = { 'a': 'scope1_a', 'b': 'scope2_b', } assert var.rval == 'scope1_a+scope2_b'
def test_Variable_ok(): var1 = Variable('test') var2 = Variable('test', rvalues=['a']) assert var1.ok is True assert var2.ok is False var2.resolved = {'a': 'test_a'} assert var2.ok is True