'Run benchmark and verify that it takes less than 2 seconds'

def testBenchmark(self):

    p = pexpect.spawn('mn    --test    none')
    p.expect('completed    in    ([\\d\\.]+)    seconds')
    time = float(p.match.group(1))
    self.assertTrue((time < 2), 'Benchmark    takes    more    than    2    seconds')
