'Verify that CPU utilization is monotonically decreasing for each scheduler'

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

    p = pexpect.spawn('python    -m    mininet.examples.cpu', timeout=300)
    opts = ['([a-z]+) DCTB ([\\d\\.]+)% DCTB ([\\d\\.e\\+]+)', pexpect.EOF]
    scheds = []
    while True:
        index = p.expect(opts)
        if (index == 0):
            sched = p.match.group(1)
            cpu = float(p.match.group(2))
            bw = float(p.match.group(3))
            if (sched not in scheds):
                scheds.append(sched)
            else:
                self.assertTrue((bw < previous_bw), ('%e    should    be    less    than    %e\n' % (bw, previous_bw)))
            previous_bw = bw
        else:
            break
    self.assertTrue((len(scheds) > 0))
