def test_repr_array_of_quantity():
 a = np.array([(1 * u.m), (2 * u.s)], dtype=object)
 assert (repr(a) == u'array([<Quantity 1.0 m>, <Quantity 2.0 s>], dtype=object)')
 assert (str(a) == u'[<Quantity 1.0 m> <Quantity 2.0 s>]')

def test_repr_array_of_quantity ( ) : a = np . array ( [ ( 1 * u . m ) , ( 2 * u . s ) ] , dtype = object ) assert ( repr ( a ) == u'array([<Quantity 1.0 m>, <Quantity 2.0 s>], dtype=object)' ) assert ( str ( a ) == u'[<Quantity 1.0 m> <Quantity 2.0 s>]' )
test print/repr of object arrays of quantity objects with different units .