def test_asum_data(self): blob = Blob() blob.set_data(numpy.array(range(30), float)) res = blob.asum_data() self.assertEqual(res, 435.0)