def test_dimensionless_to_si():
 testunit = ((1.0 * u.kpc) / (1.0 * u.Mpc))
 assert (testunit.unit.physical_type == u'dimensionless')
 assert_allclose(testunit.si, 0.001)

def test_dimensionless_to_si ( ) : testunit = ( ( 1.0 * u . kpc ) / ( 1.0 * u . Mpc ) ) assert ( testunit . unit . physical_type == u'dimensionless' ) assert_allclose ( testunit . si , 0.001 )
issue #1150: test for conversion of dimensionless quantities to the si system .