def test_10days_after_plus_1sec(self): assert get_remaining_hours(parse('2019-03-12 0:0:10')) == -240
def test_just_day_plus_1sec(self): assert get_remaining_hours(parse('2019-03-02 00:00:01')) == 0
def test_just_day(self): assert get_remaining_hours(parse('2019-03-02 0:0:0')) == 0
def test_10days_before_at_noon(self): assert get_remaining_hours(parse('2019-02-20 12:00:00')) == 240 - 12
def test_1days_before_plus_10_min(self): assert get_remaining_hours(parse('2019-02-28 23:50:00')) == 24
def test_2days_before(self): assert get_remaining_hours(parse('2019-02-28 00:00:00')) == 48
def test_23hours_before(self): assert get_remaining_hours(parse('2019-03-01 01:00:00')) == 23
def test_12hours_30min_before(self): assert get_remaining_hours(parse('2019-03-01 12:30:00')) == 11