示例#1
0
 def test_data_size(self):
     # We know that ArrayDataTestCase always returns the exact length of
     # its data
     myarray = arange(913)
     data_source = ArrayDataSource(myarray)
     self.assertEqual(len(myarray), data_source.get_size())
示例#2
0
 def test_data_size(self):
     # We know that ScalarData always returns the exact length of its data
     myarray = arange(913)
     sd = ArrayDataSource(myarray)
     self.assert_(len(myarray) == sd.get_size())
     return
示例#3
0
 def test_data_size(self):
     # We know that ArrayDataTestCase always returns the exact length of
     # its data
     myarray = arange(913)
     data_source = ArrayDataSource(myarray)
     self.assertEqual(len(myarray), data_source.get_size())
示例#4
0
 def test_data_size(self):
     # We know that ScalarData always returns the exact length of its data
     myarray = arange(913)
     sd = ArrayDataSource(myarray)
     self.assert_(len(myarray) == sd.get_size())
     return