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.
This commit is contained in:
Adam Holmberg
2015-06-25 08:49:47 -05:00
parent 7d53516c9b
commit 59d4612aac

View File

@@ -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?")