def test_edit_pool(self): """ We should NOT be able to execute edit_pool as read-only user """ p = Pool() p.id = 123 with self.assertRaises(NipapAuthorizationError): p.save()
def test_remove_pool(self): """ We should NOT be able to execute remove_pool as read-only user """ p = Pool() p.id = 0 with self.assertRaises(NipapAuthorizationError): p.remove()