TST: Fix sorting of properties and methods in servertestcase in python3

pull/549/head
Steven Hiscocks 2014-01-03 17:24:12 +00:00
parent 80d6f74ee8
commit cd5c57c8dd
1 changed files with 4 additions and 4 deletions

View File

@ -574,8 +574,8 @@ class Transmitter(TransmitterBase):
(0, action))
self.assertEqual(
sorted(self.transm.proceed(["get", self.jailName,
"actionproperties", action])),
[0, ['actionname', 'opt1', 'opt2']])
"actionproperties", action])[1]),
['actionname', 'opt1', 'opt2'])
self.assertEqual(
self.transm.proceed(["get", self.jailName, "action", action,
"opt1"]),
@ -586,8 +586,8 @@ class Transmitter(TransmitterBase):
(0, None))
self.assertEqual(
sorted(self.transm.proceed(["get", self.jailName, "actionmethods",
action])),
[0, ['ban', 'start', 'stop', 'testmethod', 'unban']])
action])[1]),
['ban', 'start', 'stop', 'testmethod', 'unban'])
self.assertEqual(
self.transm.proceed(["set", self.jailName, "action", action,
"testmethod", '{"text": "world!"}']),