Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update tests and fixtures to use new groups

  • Loading branch information...
commit 3265d2cbf90cbed61d36cbf3ec02bb33dcb6bd10 1 parent b0dc01e
Firass Asad authored
Showing with 29 additions and 29 deletions.
  1. +28 −28 fixtures/ldap_groups.json
  2. +1 −1  tests.py
View
56 fixtures/ldap_groups.json
@@ -1,58 +1,58 @@
[
{
- "pk": 60,
- "model": "auth.group",
+ "pk": 60,
+ "model": "auth.group",
"fields": {
- "name": "grp.housing.roles.administrative-assistant",
+ "name": "grp.housing.roles.residence-life.administrative-assistant",
"permissions": []
}
- },
+ },
{
- "pk": 61,
- "model": "auth.group",
+ "pk": 65,
+ "model": "auth.group",
"fields": {
- "name": "grp.housing.roles.assistant-resident-director",
+ "name": "grp.housing.roles.residence-life.assistant-director",
"permissions": []
}
- },
+ },
{
- "pk": 77,
- "model": "auth.group",
+ "pk": 61,
+ "model": "auth.group",
"fields": {
- "name": "grp.housing.roles.central-office",
+ "name": "grp.housing.roles.residence-life.assistant-resident-director",
"permissions": []
}
- },
+ },
{
- "pk": 62,
- "model": "auth.group",
+ "pk": 77,
+ "model": "auth.group",
"fields": {
- "name": "grp.housing.roles.desk-attendant",
+ "name": "grp.housing.roles.residence-life.central-office",
"permissions": []
}
- },
+ },
{
- "pk": 65,
- "model": "auth.group",
+ "pk": 62,
+ "model": "auth.group",
"fields": {
- "name": "grp.housing.roles.manager",
+ "name": "grp.housing.roles.residence-life.desk-attendant",
"permissions": []
}
- },
+ },
{
- "pk": 63,
- "model": "auth.group",
+ "pk": 63,
+ "model": "auth.group",
"fields": {
- "name": "grp.housing.roles.resident-advisor",
+ "name": "grp.housing.roles.residence-life.resident-advisor",
"permissions": []
}
- },
+ },
{
- "pk": 64,
- "model": "auth.group",
+ "pk": 64,
+ "model": "auth.group",
"fields": {
- "name": "grp.housing.roles.resident-director",
+ "name": "grp.housing.roles.residence-life.resident-director",
"permissions": []
}
}
-]
+]
View
2  tests.py
@@ -80,7 +80,7 @@ def test_get_users_by_distinguished_name(self):
def test_django_user_set_for_ldap_group(self):
# Test a group known to have users.
- user_set = django_user_set_for_ldap_group("grp.housing.roles.resident-director")
+ user_set = django_user_set_for_ldap_group("grp.housing.roles.residence-life.resident-director")
self.assertTrue(len(user_set) > 0)
self.assertTrue(isinstance(user_set[0], User))
Please sign in to comment.
Something went wrong with that request. Please try again.