def test_app_data(self):
    '\n        Any object can be set as app data by passing it to\n        `Connection.set_app_data` and later retrieved with\n        `Connection.get_app_data`.\n        '
    conn = Connection(Context(TLSv1_METHOD), None)
    assert (None is conn.get_app_data())
    app_data = object()
    conn.set_app_data(app_data)
    assert (conn.get_app_data() is app_data)
Any object can be set as app data by passing it to
`Connection.set_app_data` and later retrieved with
`Connection.get_app_data`.
def test_app_data(self):
    '\n        Any object can be set as app data by passing it to\n        `Connection.set_app_data` and later retrieved with\n        `Connection.get_app_data`.\n        '
    conn = Connection(Context(TLSv1_METHOD), None)
    assert (None is conn.get_app_data())
    app_data = object()
    conn.set_app_data(app_data)
    assert (conn.get_app_data() is app_data)