Пример #1
0
 def test_assert_standard_is_not_admin(self, mock_relationship):
     user = UserNode()
     task = TaskInst()
     with self.assertRaises(NotAdmin):
         user.assert_admin(task)
Пример #2
0
 def test_assert_owner_is_admin(self, mock_relationship):
     user = UserNode()
     task = TaskInst()
     user.assert_admin(task)