'Check that TimeDelta is treated as a quantity where possible.'

def test_valid_quantity_operations2(self):

    t0 = TimeDelta(100000.0, format='sec')
    f = (1.0 / t0)
    assert isinstance(f, u.Quantity)
    assert (f.unit == (1.0 / u.day))
    g = ((10.0 * u.m) / (u.second ** 2))
    v = (t0 * g)
    assert isinstance(v, u.Quantity)
    assert (v.decompose().unit == (u.m / u.second))
    q = np.log10((t0 / u.second))
    assert isinstance(q, u.Quantity)
    assert (q.value == np.log10(t0.sec))
    s = (1.0 * u.m)
    v = (s / t0)
    assert isinstance(v, u.Quantity)
    assert (v.decompose().unit == (u.m / u.second))
    t1 = TimeDelta(np.arange(100000.0, 100012.0).reshape(6, 2), format='sec')
    f = ((np.array([1.0, 2.0]) * u.cycle) * u.Hz)
    phase = (f * t1)
    assert isinstance(phase, u.Quantity)
    assert (phase.shape == t1.shape)
    assert phase.unit.is_equivalent(u.cycle)
