':py:obj:`Connection.set_app_data` raises :py:obj:`TypeError` if called with other than
one argument.  :py:obj:`Connection.get_app_data` raises :py:obj:`TypeError` if called
with any arguments.'

def test_app_data_wrong_args(self):

    conn = Connection(Context(TLSv1_METHOD), None)
    self.assertRaises(TypeError, conn.get_app_data, None)
    self.assertRaises(TypeError, conn.set_app_data)
    self.assertRaises(TypeError, conn.set_app_data, None, None)
