order in properties can change
authorEmmanuel Garette <egarette@cadoles.com>
Wed, 28 Aug 2013 19:23:42 +0000 (21:23 +0200)
committerEmmanuel Garette <egarette@cadoles.com>
Wed, 28 Aug 2013 19:23:42 +0000 (21:23 +0200)
test/test_permissive.py

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