def test_diff_at(self): blob = Blob() blob.set_diff(numpy.array(range(4)).reshape(2, 2)) res = blob.diff_at((1, 1)) self.assertEqual(res, 3)