def test_assert_standard_is_not_admin(self, mock_relationship): user = UserNode() task = TaskInst() with self.assertRaises(NotAdmin): user.assert_admin(task)
def test_assert_owner_is_admin(self, mock_relationship): user = UserNode() task = TaskInst() user.assert_admin(task)