Fixed the incorrect assertion in noncontiguous_vlan test

The assertion fails if the VLAN is found in which case find returns a
positive number. So here the assertion should infact assert < 0 result.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Prasanna Santhanam 2013-05-06 20:39:36 +05:30
parent c388f7f180
commit 4c0eecc195

View File

@ -81,6 +81,6 @@ class TestUpdatePhysicalNetwork(cloudstackTestCase):
self.network = phy_networks[0]
self.networkid = phy_networks[0].id
updateResponse = self.network.update(self.apiClient, id = self.networkid, removevlan = self.vlan["full"])
self.assert_(updateResponse.vlan.find(self.vlan["full"]) > 0,
self.assert_(updateResponse.vlan.find(self.vlan["full"]) < 0,
"VLAN was not removed successfully")