Fix syntax in test_load_balancer_basics._check_load_balancing

The set == {} syntax is invalid in python 2.6.

Note that even though the test is currently being skipped,
it's interpreted before the skip is executed so this fails
regardless of the skip decorator.

Closes-Bug: #1277951

Change-Id: Ic64622604a717db33555784cfe265e6af3e6dea7
This commit is contained in:
Matt Riedemann 2014-02-08 12:06:56 -08:00
parent 8ee0079b8f
commit 30670e0794

View File

@ -214,7 +214,7 @@ class TestLoadBalancerBasic(manager.NetworkScenarioTest):
resp.append(
urllib.urlopen(
"http://{0}/".format(floating_ip_vip)).read())
self.assertEqual({"server1\n", "server2\n"}, set(resp))
self.assertEqual(set(["server1\n", "server2\n"]), set(resp))
self.assertEqual(5, resp.count("server1\n"))
self.assertEqual(5, resp.count("server2\n"))