def METHOD_NAME(self):
    time_spec = trontimespec.TimeSpecification(minutes=[30, 20, 30], seconds=[0],)
    start_date = datetime.datetime(2012, 3, 14, 0, 25)
    time = time_spec.next_time(start_date, True)
    assert_equal(time, datetime.time(0, 30))
    start_date = datetime.datetime(2012, 3, 14, 23, 30)
    assert time_spec.next_time(start_date, True) is None
    time = time_spec.next_time(start_date, False)
    assert_equal(time, datetime.time(0, 20))