'Test that order is correctly propagated to np.array'

def test_order(self):

    ac = np.array(np.arange(10.0), order=u'C')
    qcc = u.Quantity(ac, u.m, order=u'C')
    assert qcc.flags[u'C_CONTIGUOUS']
    qcf = u.Quantity(ac, u.m, order=u'F')
    assert qcf.flags[u'F_CONTIGUOUS']
    qca = u.Quantity(ac, u.m, order=u'A')
    assert qca.flags[u'C_CONTIGUOUS']
    assert u.Quantity(qcc, order=u'C').flags[u'C_CONTIGUOUS']
    assert u.Quantity(qcc, order=u'A').flags[u'C_CONTIGUOUS']
    assert u.Quantity(qcc, order=u'F').flags[u'F_CONTIGUOUS']
    af = np.array(np.arange(10.0), order=u'F')
    qfc = u.Quantity(af, u.m, order=u'C')
    assert qfc.flags[u'C_CONTIGUOUS']
    qff = u.Quantity(ac, u.m, order=u'F')
    assert qff.flags[u'F_CONTIGUOUS']
    qfa = u.Quantity(af, u.m, order=u'A')
    assert qfa.flags[u'F_CONTIGUOUS']
    assert u.Quantity(qff, order=u'C').flags[u'C_CONTIGUOUS']
    assert u.Quantity(qff, order=u'A').flags[u'F_CONTIGUOUS']
    assert u.Quantity(qff, order=u'F').flags[u'F_CONTIGUOUS']
