Switch to side-by-side view
--- a/Ming/ming/tests/test_session.py +++ b/Ming/ming/tests/test_session.py @@ -37,6 +37,11 @@ session = self.session self.TestDoc = TestDoc self.TestDocNoSchema = TestDocNoSchema + + def testByName(self): + session0 = Session.by_name('foo') + session1 = Session.by_name('foo') + self.assert_(session0 is session1) def test_base_session(self): impl = self.bind.db['test_doc']