'Regression test for issue #587.'

def test_commutativity(self):

    new_q = u.Quantity(11.42, u'm*s')
    assert ((self.q1 * u.s) == (u.s * self.q1) == new_q)
    assert ((self.q1 / u.s) == u.Quantity(11.42, u'm/s'))
    assert ((u.s / self.q1) == u.Quantity((1 / 11.42), u's/m'))
