':py:obj:`Connection.get_session` returns :py:obj:`None` when used with
an object which has not been connected.'

def test_get_session_unconnected(self):

    ctx = Context(TLSv1_METHOD)
    server = Connection(ctx, None)
    session = server.get_session()
    self.assertIdentical(None, session)
