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)
committerGünther Deschner <gd@samba.org>
Fri, 3 Jul 2015 00:00:28 +0000 (02:00 +0200)
commit84993440aa9dadd89d8739102c3b7771774064fa
treeea44f7f8ac760bb57d6e218c83a59bff13bfd1e8
parent828e1d3f831fd8e44d5b859d8ad9b05bf9e6d9e4
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.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
python/samba/tests/dcerpc/bare.py