'Run iperf test using user and ovsk switches'

def testSwitches(self):

    switches = ['user', 'ovsk']
    for sw in switches:
        p = pexpect.spawn(('mn    --switch    %s    --test    iperf' % sw))
        p.expect("Results:    \\['([\\d\\.]+)    .bits/sec',")
        bw = float(p.match.group(1))
        self.assertTrue((bw > 0))
        p.expect(pexpect.EOF)
