summaryrefslogtreecommitdiff
path: root/test/engine/reflection.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/engine/reflection.py')
-rw-r--r--test/engine/reflection.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/engine/reflection.py b/test/engine/reflection.py
index 85c97d704..bb0fd9589 100644
--- a/test/engine/reflection.py
+++ b/test/engine/reflection.py
@@ -3,6 +3,7 @@ import sqlalchemy.ansisql as ansisql
import sqlalchemy.databases.postgres as postgres
from sqlalchemy import *
+from sqlalchemy.exceptions import *
from testbase import PersistTest
import testbase
@@ -141,6 +142,11 @@ class ReflectionTest(PersistTest):
assert not table2.c.name.nullable
assert table2.c.description.nullable
+ def test_nonexistent(self):
+ self.assertRaises(NoSuchTableError, Table,
+ 'fake_table',
+ testbase.db, autoload=True)
+
def testoverride(self):
table = Table(
'override_test', testbase.db,