def test_dimensionless_to_cgs():
 testunit = ((1.0 * u.m) / (1.0 * u.km))
 assert (testunit.unit.physical_type == u'dimensionless')
 assert_allclose(testunit.cgs, 0.001)

def test_dimensionless_to_cgs ( ) : testunit = ( ( 1.0 * u . m ) / ( 1.0 * u . km ) ) assert ( testunit . unit . physical_type == u'dimensionless' ) assert_allclose ( testunit . cgs , 0.001 )
issue #1150: test for conversion of dimensionless quantities to the cgs system .