Пример #1
0
 def test_cannot_be_cleaned_without_local_or_global_flag(self):
     # Run & check
     with pytest.raises(ValidationError):
         perm = ForumPermissionFactory.build(is_local=False,
                                             is_global=False)
         perm.clean()
Пример #2
0
 def test_cannot_be_cleaned_without_local_or_global_flag(self):
     # Run & check
     with pytest.raises(ValidationError):
         perm = ForumPermissionFactory.build(is_local=False, is_global=False)
         perm.clean()