def testNormalRun(self):
    ns_list = (mocks.MockNameServer(mocks.GOOD_IP),
               mocks.MockNameServer(mocks.PERFECT_IP),
               mocks.MockNameServer(mocks.BROKEN_IP),
               mocks.MockNameServer(mocks.SLOW_IP))
    b = benchmark.Benchmark(ns_list, test_count=3, run_count=2)
    b.CreateTests(['google.com', 'live.com'])
    b.Run()
    expected = ['127.0.0.1', '127.127.127.127', '192.168.0.1', '9.9.9.9']
    averages = dict([(x[0].ip, x[1]) for x in b.ComputeAverages()])
    self.assertEquals(len(averages), 4)
    self.assertTrue(averages[mocks.GOOD_IP] >= 8)
    self.assertTrue(averages[mocks.PERFECT_IP] <= 5)
    self.assertTrue(averages[mocks.BROKEN_IP] >= 59)
    self.assertTrue(20 >= averages[mocks.SLOW_IP])
    self.assertEquals(b.BestOverallNameServer(), ns_list[1])
    self.assertEquals(b.NearestNameServers(count=2), [ns_list[1], ns_list[0]])
dataset/ETHPy150Open catap/namebench/libnamebench/benchmark_test.py/BenchmarkTest.testNormalRun/swapped operands of `>=`