add aitional tests for dense multi attribute testcase
@@ -241,6 +241,7 @@ class DenseArrayTest(DiskTestCase):
with self.assertRaises(t.TileDBError):
t.DenseArray(ctx, self.path("foo"), domain=dom, attrs=(att,))
+
def test_array_1d(self):
A = np.arange(1050)
@@ -474,18 +475,16 @@ class DenseArrayTest(DiskTestCase):
assert_array_equal(V["ints"], R["ints"])
assert_array_equal(V["floats"], R["floats"])
- """
+ # check error ncells length
+ V["ints"] = V["ints"][1:2].copy()
+ with self.assertRaises(AttributeError):
+ T[:] = V
+
# check error attribute does not exist
- # TODO: should this be an attribute error?
V["foo"] = V["ints"].astype(np.int8)
with self.assertRaises(t.TileDBError):
- T[I, J] = V
+ T[:] = V
- # check error ncells length
- V["ints"] = V["ints"][1:2].copy()
- with self.assertRaises(AttributeError):
- T[I, J] = V
- """
class SparseArray(DiskTestCase):
