

@unittest.skipIf((os.geteuid() != 0), 'Not running tests as root')
def test_init(self):
    name = 'test-host'
    hid = 123
    hw_addr_str = '0e:32:a4:91:e7:20'
    ip = '192.168.56.1'
    interfaces = [HostInterface(host, ip)]
    io_master = self.initialize_io_loop()
    host = NamespaceHost(interfaces, io_master.create_worker_for_socket, name=name, hid=hid)
    self.assertEquals(host.interfaces, interfaces)

dataset/ETHPy150Open ucb-sts/sts/tests/integration/sts/entities/hosts_test.py NamespaceHostTest.test_init/VarMisuse@49/96 `hw_addr_str`->`host`