def test_getUTCDatetimeDOY_w_days():
    days = 1
    t = (datetime.datetime.utcnow() + datetime.timedelta(days=days))
    timestamp = t.timetuple()
    exp_year = timestamp.tm_year
    exp_day = ('%03d' % timestamp.tm_yday)
    dtime = dmc.getUTCDatetimeDOY(days=days).split('T')[0].split('-')
    assert (str(exp_year) == dtime[0])
    assert (str(exp_day) == dtime[1])
def test_getUTCDatetimeDOY_w_days():
    days = 1
    t = (datetime.datetime.utcnow() + datetime.timedelta(days=days))
    timestamp = t.timetuple()
    exp_year = timestamp.tm_year
    exp_day = ('%03d' % timestamp.tm_yday)
    dtime = dmc.getUTCDatetimeDOY(days=days).split('T')[0].split('-')
    assert (str(exp_year) == dtime[0])
    assert (str(exp_day) == dtime[1])