From 59d4612aaccfbc56e530aff6ad4ef191c8bc0c94 Mon Sep 17 00:00:00 2001 From: Adam Holmberg Date: Thu, 25 Jun 2015 08:49:47 -0500 Subject: [PATCH] cqle: Update invalid inet test with a string that won't parse Cassandra seems to be accepting various bad strings and inserting '92.242.140.2' (for many different strings). Need to follow up on that. Meanwhile, this string does induce an Invalid request. Side note: I'm not sure this test is worth having, unless there is supposed to be some kind of local validation. We're not testing the server here. --- tests/integration/cqlengine/columns/test_validation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/cqlengine/columns/test_validation.py b/tests/integration/cqlengine/columns/test_validation.py index ce8ab987..87323754 100644 --- a/tests/integration/cqlengine/columns/test_validation.py +++ b/tests/integration/cqlengine/columns/test_validation.py @@ -392,6 +392,7 @@ class TestInet(BaseCassEngTestCase): assert m.address == "192.168.1.1" def test_non_address_fails(self): + # TODO: presently this only tests that the server blows it up. Is there supposed to be local validation? with self.assertRaises(InvalidRequest): - self.InetTestModel.create(address="ham sandwich") + self.InetTestModel.create(address="what is going on here?")