Ejemplo n.º 1
0
 def test_group_management(self):
     x = UserProfile.objects.get(pk=10482)
     assert not action_allowed_user(x, 'Admin', '%')
     do_adduser('10482', '1')
     assert action_allowed_user(x, 'Admin', '%')
     do_removeuser('10482', '1')
     assert not action_allowed_user(x, 'Admin', '%')
Ejemplo n.º 2
0
    def test_group_management(self):
        #TODO. I don't know how to override caching in tests --clouserw
        raise SkipTest('Fails due to caching of groups.all()')

        x = UserProfile.objects.get(pk=10482)
        assert not action_allowed_user(x, 'Admin', '%')
        do_adduser('10482', '1')
        assert action_allowed_user(x, 'Admin', '%')
        do_removeuser('10482', '1')
        assert not action_allowed_user(x, 'Admin', '%')
Ejemplo n.º 3
0
    def test_group_management(self):
        #TODO. I don't know how to override caching in tests --clouserw
        raise SkipTest('Fails due to caching of groups.all()')

        x = UserProfile.objects.get(pk=10482)
        assert not action_allowed_user(x, 'Admin', '%')
        do_adduser('10482', '1')
        assert action_allowed_user(x, 'Admin', '%')
        do_removeuser('10482', '1')
        assert not action_allowed_user(x, 'Admin', '%')
Ejemplo n.º 4
0
    def test_group_management(self):
        # TODO. I don't know how to override caching in tests --clouserw
        raise SkipTest("Fails due to caching of groups.all()")

        x = UserProfile.objects.get(pk=10482)
        assert not action_allowed_user(x, "Admin", "%")
        do_adduser("10482", "1")
        assert action_allowed_user(x, "Admin", "%")
        do_removeuser("10482", "1")
        assert not action_allowed_user(x, "Admin", "%")