diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2019-02-22 00:33:55 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@bbpush.zzzcomputing.com> | 2019-02-22 00:33:55 +0000 |
| commit | 53c7fc4690ead7a58947ad982c0a47e1af18e154 (patch) | |
| tree | a2935c4eb5d0ee913714c71f8772d1933b0bfe71 | |
| parent | 0cdc89c2768cbffff4719fed4562937cd02359a0 (diff) | |
| parent | 40401d7933aa9c241a4f8064085efdd5e25f1dbf (diff) | |
| download | sqlalchemy-53c7fc4690ead7a58947ad982c0a47e1af18e154.tar.gz | |
Merge "Add test to as_interface when no cls or methods"
| -rw-r--r-- | test/base/test_utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/base/test_utils.py b/test/base/test_utils.py index b27379248..e96162703 100644 --- a/test/base/test_utils.py +++ b/test/base/test_utils.py @@ -2305,6 +2305,10 @@ class AsInterfaceTest(fixtures.TestBase): class Object(object): pass + def test_no_cls_no_methods(self): + obj = object() + assert_raises(TypeError, util.as_interface, obj) + def test_instance(self): obj = object() assert_raises(TypeError, util.as_interface, obj, cls=self.Something) |
