Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
Fix py3 test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Apr 11, 2018
1 parent ccbed8a commit 1fac45c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/Tosca.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def test_tosca_to_radl(self):
net1 = radl.get_network_by_id('public_net_1')
self.assertIn(net.getValue('provider_id'), ['vpc-XX.subnet-XX', None])
if net.getValue('provider_id') is None:
self.assertEqual(net.getValue("outports"), '1:4/tcp')
self.assertIn('1:4/tcp', net.getValue("outports"))
self.assertIn('8000/tcp-8000/tcp', net.getValue("outports"))
self.assertEqual(net1.getValue("outports"), '8080/tcp-8080/tcp')
else:
self.assertEqual(net.getValue('provider_id'), 'vpc-XX.subnet-XX')
Expand Down

0 comments on commit 1fac45c

Please sign in to comment.