def test_we_cant_set_the_resolution_when_not_valid(): bug = Bug(**example_return['bugs'][0]) try: bug.resolution = 'FOO' assert 1 == 0, "Should thrown an error" except BugException as e: assert str(e) == "Message: Invalid resolution type was used Code: None"
def test_we_cant_set_the_resolution_when_not_valid(): bug = Bug(**example_return['bugs'][0]) try: bug.resolution = 'FOO' assert 1==0, "Should thrown an error" except BugException as e: assert str(e) == "Message: Invalid resolution type was used"
def test_we_can_set_the_resolution(): bug = Bug(**example_return['bugs'][0]) bug.resolution = 'INVALID' assert bug.resolution == 'INVALID'
def test_we_can_set_the_resolution(): bug = Bug(**example_return["bugs"][0]) bug.resolution = "INVALID" assert bug.resolution == "INVALID"