@unittest.skipIf(os.geteuid() != 0, "Not running tests as root")
  def test_init(self):
    # Arrange
    name = "test-host"
    hid = 123
    hw_addr_str = "0e:32:a4:91:e7:20"
    ip = "192.168.56.1"
    interfaces = [HostInterface(hw_addr_str, ip)]
    io_master = self.initialize_io_loop()
    # Act
    host = NamespaceHost(interfaces, io_master.create_worker_for_socket,
                         name=name, hid=hid)
    # Assert
    self.assertEquals(host.interfaces, interfaces)
dataset/ETHPy150Open ucb-sts/sts/tests/integration/sts/entities/hosts_test.py/NamespaceHostTest.test_init/original