Exemple #1
0
def test_next_game_against_bluejays(_get):
    _get().content = \
        open('tests/fixtures/bluejays_with_double_header.html').read()
    game_time, game_id = baseball.next_game('http://example.com')

    assert game_time is not None
    assert_equals('330604126', game_id)
Exemple #2
0
def test_next_game(_get):
    _get().content = open('tests/fixtures/schedule.html').read()
    game_time, game_id = baseball.next_game('http://example.com')
    assert_equals(game_id, '330406126')
    assert_equals(game_time, april(6, 20, 5))