def test_no_set(): # Tests that it works when prop cannot be set: util.no_set(Prop('get', 'del'), 'prop') # Tests that ExceptionNotRaised is raised when prop *can* be set: raised = False try: util.no_set(Prop('set'), 'prop') except util.ExceptionNotRaised: raised = True assert raised
def test_no_set(): # Tests that it works when prop cannot be set: util.no_set(Prop('get', 'del'), 'prop') # Tests that ExceptionNotRaised is raised when prop *can* be set: raised = False try: util.no_set(Prop('set'), 'prop') except util.ExceptionNotRaised: raised = True assert raised
def test_no_set(): # Tests that it works when prop cannot be set: util.no_set(Prop("get", "del"), "prop") # Tests that ExceptionNotRaised is raised when prop *can* be set: raised = False try: util.no_set(Prop("set"), "prop") except util.ExceptionNotRaised: raised = True assert raised