changeset 276:271a16d42072

removed test_lookuplist from test_dataset
author James Bergstra <bergstrj@iro.umontreal.ca>
date Thu, 05 Jun 2008 14:16:46 -0400
parents 323909110d1c
children 6255359318bf 9b533cc7874a
files test_dataset.py
diffstat 1 files changed, 0 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- 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()