python:samba/tests: don't use the x.alter_context() method in dcerpc/bare.py
authorStefan Metzmacher <metze@samba.org>
Mon, 29 Jun 2015 08:03:40 +0000 (10:03 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 28 Mar 2016 22:41:13 +0000 (00:41 +0200)
commite2acb2e5f23cd0366d19ba78428d25322a5b6000
tree65dd3e8feebd6c42bbc0361037488a50322df7a2
parent320bfd52c5ea7531f206cc2c8ccc21f45b69ff9e
python:samba/tests: don't use the x.alter_context() method in dcerpc/bare.py

Establishing a new context on a given connection using alter_context
is supposed to be done by using y = ClientConnection(..., basis_connection=x)

The current x.alter_context() can work as it's not allowed to
change the abstract or transfer syntax of an existing presentation
context.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11804

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
(cherry picked from commit 84993440aa9dadd89d8739102c3b7771774064fa)
python/samba/tests/dcerpc/bare.py