Example #1
0
def test_parse_gametime_postponed():
    gt = baseball.parse_gametime("Mon, Apr 1", "POSTPONED")
    assert_equals(pytz.utc.localize(datetime(YEAR, 4, 1, 20, 5)), gt)
Example #2
0
def test_parse_gametime():
    gt = baseball.parse_gametime("Mon, Apr 1", "4:05 PM")
    assert_equals(pytz.utc.localize(datetime(2013, 4, 1, 20, 5)), gt)
Example #3
0
def test_parse_gametime_tba():
    gt = baseball.parse_gametime("Mon, Apr 1", "TBA")
    assert_equals(pytz.utc.localize(datetime(YEAR, 4, 1, 20, 5)), gt)