MCPcopy Create free account
hub / github.com/apache/kudu / test_delete_table

Method test_delete_table

python/kudu/tests/test_client.py:112–121  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

110 assert self.client.is_multimaster
111
112 def test_delete_table(self):
113 name = "peekaboo"
114 self.client.create_table(name, self.schema, self.partitioning)
115 self.client.delete_table(name)
116 assert not self.client.table_exists(name)
117
118 # Should raise a more meaningful exception at some point
119 error_msg = 'the table does not exist: table_name: "{0}"'.format(name)
120 with self.assertRaisesRegex(kudu.KuduNotFound, error_msg):
121 self.client.delete_table(name)
122
123 def test_table_nonexistent(self):
124 self.assertRaises(kudu.KuduNotFound, self.client.table,

Callers

nothing calls this directly

Calls 1

assertRaisesRegexMethod · 0.80

Tested by

no test coverage detected