Skip to content

Commit

Permalink
Review Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
chemelnucfin committed Dec 19, 2017
1 parent b0cbb6a commit e17ef82
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spanner/tests/system/test_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,14 +285,14 @@ def test_create_database(self):

def test_create_database_not_found(self):
temp_db_id = 'temp_db' + unique_resource_id('_')
temp_db = Config.INSTANCE.database("bitemporal_pattern1", ddl_statements=[
"""CREATE TABLE MyTable (
Id String(36) NOT NULL,
Field1 STRING(36) NOT NULL
) PRIMARY KEY (Id)""",
"""CREATE INDEX IDX ON yTable (Field1)"""
temp_db = Config.INSTANCE.database(temp_db_id, ddl_statements=[
'CREATE TABLE MyTable ('
' Id STRING(36) NOT NULL,'
' Field1 STRING(36) NOT NULL'
') PRIMARY KEY (Id)',
'CREATE INDEX IDX ON yTable (Field1)'
])
with self.assertRaisesRegexp(NotFound, "Database not found"):
with self.assertRaisesRegexp(NotFound, 'Database not found: ' + temp_db_id):
operation = temp_db.create()

def test_update_database_ddl(self):
Expand Down

0 comments on commit e17ef82

Please sign in to comment.