def test_connect(self):
    self._test_connect()
    self.assertEqual(1, self.h_ipdb_exit.call_count)
    self.assertEqual(2, self.c_ipdb_exit.call_count)
    self.assertEqual(self.ifname, self.m_h_iface.ifname)
    self.assertEqual(1, self.m_h_iface.mtu)
    self.assertEqual(str(self.vif.address), self.m_h_iface.address)
    self.m_h_iface.up.assert_called_once_with()
def test_connect(self):
    self._test_connect()
    self.assertEqual(1, self.h_ipdb_exit.call_count)
    self.assertEqual(2, self.c_ipdb_exit.call_count)
    self.assertEqual(self.ifname, self.m_h_iface.ifname)
    self.assertEqual(1, self.m_h_iface.mtu)
    self.assertEqual(str(self.vif.address), self.m_h_iface.address)
    self.m_h_iface.up.assert_called_once_with()