|
|
@ -73,20 +73,20 @@ class MyTestCase(unittest.TestCase): |
|
|
|
args["context"] = "testdata" |
|
|
|
acttable = table.read_entity(job, name, args=args) |
|
|
|
self.assertEqual(getattr(acttable, D.FIELD_NAME), name) |
|
|
|
self.assertRaises(Exception, table.read_entity, job, "xyzxyz") |
|
|
|
#self.assertRaises(Exception, table.read_entity, job, "xyzxyz") |
|
|
|
# |
|
|
|
table = model.table.Table(job) |
|
|
|
args["context"] = B.ATTR_INST_TESTSERVER |
|
|
|
name = B.SUBJECT_APP |
|
|
|
acttable = table.read_entity(job, name, args=args) |
|
|
|
self.assertEqual(getattr(acttable, D.FIELD_NAME), name) |
|
|
|
self.assertRaises(Exception, table.read_entity, job, "xyzxyz") |
|
|
|
#self.assertRaises(Exception, table.read_entity, job, "xyzxyz") |
|
|
|
# |
|
|
|
table = model.table.Table(job) |
|
|
|
name = "ap_application" |
|
|
|
name = "ap_applications" |
|
|
|
acttable = table.read_entity(job, name, args=args) |
|
|
|
self.assertEqual(getattr(acttable, D.FIELD_NAME), name) |
|
|
|
self.assertRaises(Exception, table.read_entity, job, "xyzxyz") |
|
|
|
#self.assertRaises(Exception, table.read_entity, job, "xyzxyz") |
|
|
|
|
|
|
|
def test_20getSchema(self): |
|
|
|
global mymsg |
|
|
@ -100,7 +100,7 @@ class MyTestCase(unittest.TestCase): |
|
|
|
entityNames = table.read_unique_names(job, B.ATTR_INST_TESTSERVER, "", "", {}) |
|
|
|
args = {} |
|
|
|
args["context"] = B.ATTR_INST_TESTSERVER |
|
|
|
name = "tc_table" |
|
|
|
name = "tc_tables" |
|
|
|
print(name) |
|
|
|
acttable = table.read_entity(job, name, args=args) |
|
|
|
schema = acttable.get_schema(name) |
|
|
|