def METHOD_NAME(self, name, application, account, raises=None, expected=None):
    svc = DOAJ.authorisationService()
    if raises is not None:
        with self.assertRaises(raises):
            svc.can_edit_application(account, application)
    elif expected is not None:
        assert svc.can_edit_application(account, application) is expected
    else:
        assert False, "Specify either raises or expected"