(self)
| 657 | sess.close() |
| 658 | |
| 659 | def test_session_unbound(self): |
| 660 | Foo = self.classes.Foo |
| 661 | |
| 662 | sess = Session() |
| 663 | sess.add(Foo()) |
| 664 | assert_raises_message( |
| 665 | sa.exc.UnboundExecutionError, |
| 666 | ( |
| 667 | "Could not locate a bind configured on Mapper|Foo|test_table " |
| 668 | "or this Session" |
| 669 | ), |
| 670 | sess.flush, |
| 671 | ) |
| 672 | |
| 673 | |
| 674 | class GetBindTest(fixtures.MappedTest): |
nothing calls this directly
no test coverage detected