# HG changeset patch # User James Bergstra # Date 1212689806 14400 # Node ID 271a16d4207237cce4d74555f9bffa7f2646844a # Parent 323909110d1cd6bfdb5cdbbebe5a0527e082b8b0 removed test_lookuplist from test_dataset diff -r 323909110d1c -r 271a16d42072 test_dataset.py --- a/test_dataset.py Thu Jun 05 14:14:51 2008 -0400 +++ b/test_dataset.py Thu Jun 05 14:16:46 2008 -0400 @@ -426,26 +426,6 @@ del a2, ds -def test_LookupList(): - #test only the example in the doc??? - print "test_LookupList" - example = LookupList(['x','y','z'],[1,2,3]) - example['x'] = [1, 2, 3] # set or change a field - x, y, z = example - x = example[0] - x = example["x"] - assert example.keys()==['x','y','z'] - assert example.values()==[[1,2,3],2,3] - assert example.items()==[('x',[1,2,3]),('y',2),('z',3)] - example.append_keyval('u',0) # adds item with name 'u' and value 0 - assert len(example)==4 # number of items = 4 here - example2 = LookupList(['v','w'], ['a','b']) - example3 = LookupList(['x','y','z','u','v','w'], [[1, 2, 3],2,3,0,'a','b']) - assert example+example2==example3 - assert have_raised("var['x']+var['x']",x=example) - - del example, example2, example3, x, y ,z - def test_CachedDataSet(): print "test_CacheDataSet" a = numpy.random.rand(10,4) @@ -561,7 +541,6 @@ if __name__=='__main__': test1() - test_LookupList() test_ArrayDataSet() test_CachedDataSet() test_ApplyFunctionDataSet()