order in properties can change

This commit is contained in:
Emmanuel Garette 2013-08-28 21:23:42 +02:00
parent fbf05ba5e4
commit 8c24903dfb

View file

@ -73,7 +73,7 @@ def test_permissive_frozen():
config.u1 = 1 config.u1 = 1
except PropertiesOptionError as err: except PropertiesOptionError as err:
props = err.proptype props = err.proptype
assert props == ['frozen', 'disabled'] assert set(props) == set(['frozen', 'disabled'])
setting.append('permissive') setting.append('permissive')
config.u1 = 1 config.u1 = 1
assert config.u1 == 1 assert config.u1 == 1
@ -82,7 +82,7 @@ def test_permissive_frozen():
config.u1 = 1 config.u1 = 1
except PropertiesOptionError as err: except PropertiesOptionError as err:
props = err.proptype props = err.proptype
assert props == ['frozen', 'disabled'] assert set(props) == set(['frozen', 'disabled'])
def test_invalid_permissive(): def test_invalid_permissive():