test now sensible to wrong rename
This commit is contained in:
parent
4c1281b4fc
commit
e142d00d02
|
@ -65,11 +65,13 @@ class TestTable:
|
||||||
default.add('nine',d,'random data')
|
default.add('nine',d,'random data')
|
||||||
assert np.allclose(d,default.get('nine'))
|
assert np.allclose(d,default.get('nine'))
|
||||||
|
|
||||||
def test_rename_equivalent(self,default):
|
def test_rename_equivalent(self):
|
||||||
v = default.get('v')
|
x = np.random.random((5,13))
|
||||||
default.rename('v','u')
|
t = Table(x,{'F':(3,3),'v':(3,),'s':(1,)},['random test data'])
|
||||||
u = default.get('u')
|
s = t.get('s')
|
||||||
assert np.all(v == u)
|
t.rename('s','u')
|
||||||
|
u = t.get('u')
|
||||||
|
assert np.all(s == u)
|
||||||
|
|
||||||
def test_rename_gone(self,default):
|
def test_rename_gone(self,default):
|
||||||
default.rename('v','V')
|
default.rename('v','V')
|
||||||
|
|
Loading…
Reference in New Issue