Ejemplo n.º 1
0
    def test_has_perm(self):
        staff = EditorFactory(username='******', is_active=True, is_staff=True)
        assert staff.has_perm('test-perm')

        notstaff = EditorFactory(username='******', is_active=True)
        assert not notstaff.has_perm('test-perm')