示例#1
0
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"
示例#2
0
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"
示例#3
0
def test_we_can_set_the_resolution():
    bug = Bug(**example_return['bugs'][0])
    bug.resolution = 'INVALID'
    assert bug.resolution == 'INVALID'
示例#4
0
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"