def test_unit_multiplication_with_string():
 u1 = u.cm
 us = u'kg'
 assert ((us * u1) == (u.Unit(us) * u1))
 assert ((u1 * us) == (u1 * u.Unit(us)))

def test_unit_multiplication_with_string ( ) : u1 = u . cm us = u'kg' assert ( ( us * u1 ) == ( u . Unit ( us ) * u1 ) ) assert ( ( u1 * us ) == ( u1 * u . Unit ( us ) ) )
check that multiplication with strings produces the correct unit .