def test_fixture_returns_total_number_of_stories(): fixture = Fixture() action = some_action() other_action = some_action() fixture.append_story(action.scenario.story) fixture.append_story(action.scenario.story) fixture.append_story(other_action.scenario.story) action.mark_as_successful() other_action.mark_as_successful() assert fixture.count_total_stories() == 3