def test_get_bridges(self):
    bridges = ['br-int', 'br-ex']
    root_helper = 'sudo'
    utils.execute(['ovs-vsctl', self.TO, 'list-br'], root_helper=root_helper).AndReturn('br-int\nbr-ex\n')
    self.mox.ReplayAll()
    self.assertEqual(ovs_lib.get_bridges(root_helper), bridges)
    self.mox.VerifyAll()
def test_get_bridges(self):
    bridges = ['br-int', 'br-ex']
    root_helper = 'sudo'
    utils.execute(['ovs-vsctl', self.TO, 'list-br'], root_helper=root_helper).AndReturn('br-int\nbr-ex\n')
    self.mox.ReplayAll()
    self.assertEqual(ovs_lib.get_bridges(root_helper), bridges)
    self.mox.VerifyAll()