Skip to content

Commit

Permalink
fixed problems in comparing lists
Browse files Browse the repository at this point in the history
  • Loading branch information
hyades committed Aug 16, 2013
1 parent 00dfafe commit 749a3e3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions python-api/tests/integrationtests/test_controller.py
Expand Up @@ -47,8 +47,10 @@ def get_compose_port(self):

def test_compose_ports(self):
res = []
expected_result = []
for i in range(self.NUM):
video_port = (i+1)*1000
expected_result.append([video_port+1]*self.NUM*3)
s = Server(path=PATH, video_port=video_port)
try:
s.run()
Expand All @@ -61,14 +63,14 @@ def test_compose_ports(self):
finally:
if s.proc:
s.terminate()
expected_result = [[1001]*self.NUM*3,
[2001]*self.NUM*3,
[3001]*self.NUM*3,
[4001]*self.NUM*3]

at = [ tuple(i) for i in expected_result]
bt = [ tuple(i) for i in res]
assert set(at) == set(bt)







Expand Down

0 comments on commit 749a3e3

Please sign in to comment.