def test_with_unknown_type(self):
     with raises(TypeError):
         get_bind(None)
 def test_with_session(self):
     assert get_bind(self.session) == self.connection
 def test_with_model_object(self):
     article = self.Article()
     self.session.add(article)
     assert get_bind(article) == self.connection