def test_composite_unit_get_format_name():
 unit1 = u.Unit(u'nrad/s')
 unit2 = u.Unit(u'Hz(1/2)')
 assert (str(u.CompositeUnit(1, [unit1, unit2], [1, (-1)])) == u'nrad / (Hz(1/2) s)')

def test_composite_unit_get_format_name ( ) : unit1 = u . Unit ( u'nrad/s' ) unit2 = u . Unit ( u'Hz(1/2)' ) assert ( str ( u . CompositeUnit ( 1 , [ unit1 , unit2 ] , [ 1 , ( - 1 ) ] ) ) == u'nrad / (Hz(1/2) s)' )
see #1576 .