diff options
Diffstat (limited to 'ishtar_common/tests.py')
| -rw-r--r-- | ishtar_common/tests.py | 9 | 
1 files changed, 7 insertions, 2 deletions
| diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py index f51f9736a..8ecf98255 100644 --- a/ishtar_common/tests.py +++ b/ishtar_common/tests.py @@ -524,9 +524,14 @@ class AccessControlTest(TestCase):              models.UserProfile.objects.filter(                  person__ishtaruser=ishtar_user,                  profile_type__txt_idx='administrator' -            ).count(), 0 +            ).count(), 1 +        )  # no more automatic deletion of profile for admin +        self.assertEqual( +            models.UserProfile.objects.filter( +                person__ishtaruser=ishtar_user, +                profile_type__txt_idx='administrator' +            ).count(), 1          ) -        self.assertNotIn(admin, ishtar_user.person.person_types.all())  class UserProfileTest(TestCase): | 
