'Run the example and verify iperf results'

@unittest.skipIf(('-quick' in sys.argv), 'long    test')
def testE2E(self):

    BW = 10
    TOLERANCE = 0.2
    p = pexpect.spawn('python    -m    mininet.examples.simpleperf    testmode')
    p.expect("Results:    \\['10M',    '([\\d\\.]+)    .bits/sec", timeout=480)
    measuredBw = float(p.match.group(1))
    lowerBound = (BW * (1 - TOLERANCE))
    upperBound = (BW + (1 + TOLERANCE))
    self.assertGreaterEqual(measuredBw, lowerBound)
    self.assertLessEqual(measuredBw, upperBound)
    p.wait()
