jlaine/django-ldapdb — pull request #13 by mgorny (2013-09-07 22:55:23+00:00)
Title: Fix tests not to rely on returned object order.

LDAP is not guaranteed to return objects in any specific order, and specifically not in the order they were added in. Therefore, the tests `test_slice()` and `test_values*()` in `GroupTestCase` fail randomly depending on the order of results returned by LDAP server.

Instead, sort the results to ensure that we can assert them in specific order.