[F server test] sort for test predictability
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 31 Jul 2009 23:27:53 +0200
changeset 2595 e76bf303c6f2
parent 2594 92aad5e18405
child 2596 d02eed70937f
[F server test] sort for test predictability
server/__init__.py
--- a/server/__init__.py	Fri Jul 31 23:26:14 2009 +0200
+++ b/server/__init__.py	Fri Jul 31 23:27:53 2009 +0200
@@ -124,7 +124,8 @@
         else:
             login, pwd = unicode(source['db-user']), source['db-password']
     print '-> inserting default user and default groups.'
-    for group in BASE_GROUPS:
+    # sort for eid predicatability as expected in some server tests
+    for group in sorted(BASE_GROUPS):
         rset = session.execute('INSERT CWGroup X: X name %(name)s',
                                {'name': unicode(group)})
     rset = session.execute('INSERT CWUser X: X login %(login)s, X upassword %(pwd)s',