MCPcopy Index your code
hub / github.com/clips/pattern / test_rename

Method test_rename

test/test_db.py:484–490  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

482 print "pattern.db.Table"
483
484 def test_rename(self):
485 # Assert ALTER TABLE when name changes.
486 v = self.db.persons
487 v.name = "clients"
488 self.assertEqual(self.db.query, "alter table `persons` rename to `clients`;")
489 self.assertEqual(self.db.tables.get("clients"), v)
490 print "pattern.db.Table.name"
491
492 def test_fields(self):
493 # Assert ALTER TABLE when column is inserted.

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected