# HG changeset patch # User Frederic Bastien # Date 1212691218 14400 # Node ID f708a14acdbc3a1754ad400e164961fcc6bfd64b # Parent 6255359318bfb28afe3516278ccfa1f1029dd6a4 removed test for dataset[fieldname] as this is not possible anymore diff -r 6255359318bf -r f708a14acdbc test_dataset.py --- a/test_dataset.py Thu Jun 05 14:29:06 2008 -0400 +++ b/test_dataset.py Thu Jun 05 14:40:18 2008 -0400 @@ -302,37 +302,6 @@ test_ds(ds,ds2,[4,7,2,8]) del ds2 -#ds[fieldname]# an iterable over the values of the field fieldname across - #the ds (the iterable is obtained by default by calling valuesVStack - #over the values for individual examples). - if 0: - assert have_raised("ds['h']") # h is not defined... - assert have_raised("ds[['x']]") # bad syntax - assert not have_raised("var['ds']['x']",ds=ds) - isinstance(ds['x'],DataSetFields) - ds2=ds['x'] - assert len(ds['x'])==10 - assert len(ds['y'])==10 - assert len(ds['z'])==10 - i=0 - for example in ds['x']: - assert (example==array[i][:3]).all() - i+=1 - assert i==len(ds) - i=0 - for example in ds['y']: - assert (example==array[i][3]).all() - i+=1 - assert i==len(ds) - i=0 - for example in ds['z']: - assert (example==array[i,0:3:2]).all() - i+=1 - assert i==len(ds) - del ds2,i - else: - print 'warning: ds[fieldname] is deprecated... Fred could you fix this test?' - #ds.# returns the value of a property associated with #the name . The following properties should be supported: # - 'description': a textual description or name for the ds