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 7c4e616 commit 00dfafe
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions python-api/tests/integrationtests/test_controller.py
Expand Up @@ -61,12 +61,13 @@ def test_compose_ports(self):
finally:
if s.proc:
s.terminate()
expected_result = [[1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001],
[2001, 2001, 2001, 2001, 2001, 2001, 2001, 2001, 2001, 2001, 2001, 2001],
[3001, 3001, 3001, 3001, 3001, 3001, 3001, 3001, 3001, 3001, 3001, 3001],
[4001, 4001, 4001, 4001, 4001, 4001, 4001, 4001, 4001, 4001, 4001, 4001]]
assert expected_result == res
# print expected_result == res
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 00dfafe

Please sign in to comment.