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())
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