def test_to_string_radian_with_precision():
 a = Angle(3.0, unit=u.rad)
 assert (a.to_string(precision=3, sep=u'fromunit') == u'3.000rad')

def test_to_string_radian_with_precision ( ) : a = Angle ( 3.0 , unit = u . rad ) assert ( a . to_string ( precision = 3 , sep = u'fromunit' ) == u'3.000rad' )
regression test for a bug that caused to_string to crash for angles in radians when specifying the precision .