From c43f65e1cbc2c334e0de3dc8be4d009fd1230f9a Mon Sep 17 00:00:00 2001 From: Adam Holmberg Date: Thu, 15 Oct 2015 09:53:53 -0500 Subject: [PATCH] test: update udt meta string test following PYTHON-405 --- tests/unit/test_metadata.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/test_metadata.py b/tests/unit/test_metadata.py index 1b3c4937..86758e23 100644 --- a/tests/unit/test_metadata.py +++ b/tests/unit/test_metadata.py @@ -329,17 +329,17 @@ class UserTypesTest(unittest.TestCase): def test_as_cql_query(self): field_types = [IntegerType, AsciiType, TupleType.apply_parameters([IntegerType, AsciiType])] udt = UserType("ks1", "mytype", ["a", "b", "c"], field_types) - self.assertEqual("CREATE TYPE ks1.mytype (a varint, b ascii, c frozen>);", udt.as_cql_query(formatted=False)) + self.assertEqual("CREATE TYPE ks1.mytype (a varint, b ascii, c frozen>)", udt.as_cql_query(formatted=False)) self.assertEqual("""CREATE TYPE ks1.mytype ( a varint, b ascii, c frozen> -);""", udt.as_cql_query(formatted=True)) +);""", udt.export_as_string()) def test_as_cql_query_name_escaping(self): udt = UserType("MyKeyspace", "MyType", ["AbA", "keyspace"], [AsciiType, AsciiType]) - self.assertEqual('CREATE TYPE "MyKeyspace"."MyType" ("AbA" ascii, "keyspace" ascii);', udt.as_cql_query(formatted=False)) + self.assertEqual('CREATE TYPE "MyKeyspace"."MyType" ("AbA" ascii, "keyspace" ascii)', udt.as_cql_query(formatted=False)) class IndexTest(unittest.TestCase):