From 8dae35d4f546add88f22a04b76c77dd77e3ebc1e Mon Sep 17 00:00:00 2001 From: Joaquin Casares Date: Fri, 25 Jul 2014 16:36:38 -0500 Subject: [PATCH] Test for PYTHON-98 --- tests/integration/standard/test_types.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/integration/standard/test_types.py b/tests/integration/standard/test_types.py index 36b1a099..33b602f6 100644 --- a/tests/integration/standard/test_types.py +++ b/tests/integration/standard/test_types.py @@ -486,6 +486,11 @@ class TypeTests(unittest.TestCase): # insert tuples into same key using different columns # and verify the results for i in lengths: + # ensure tuples of larger sizes throw an error + created_tuple = tuple(range(0, i + 1)) + self.assertRaises(InvalidRequest, s.execute, "INSERT INTO mytable (k, v_%s) VALUES (0, %s)", (i, created_tuple)) + + # ensure tuples of proper sizes are written and read correctly created_tuple = tuple(range(0, i)) s.execute("INSERT INTO mytable (k, v_%s) VALUES (0, %s)", (i, created_tuple))