コード例 #1
0
def test_mark_story_as_successful_after_failed_has_no_effect():
    story = Story(as_a="Someone", i_want_to="Do Something", so_that="I'm Happy", identity="Some File")
    story.mark_as_failed()
    story.mark_as_successful()
    assert story.status == Status.Failed, "The status should be %s but was %s" % (Status.Failed, story.status)
コード例 #2
0
def test_mark_story_as_successful():
    story = Story(as_a="Someone", i_want_to="Do Something", so_that="I'm Happy", identity="Some File")
    story.mark_as_successful()
    assert story.status == Status.Successful, "The status should be %s but was %s" % (Status.Successful, story.status)