def test_firstAddress(self):
        hosts = FilePath(self.mktemp())
        hosts.setContent(
            "::1 foo.example.com\n"
            "10.1.2.3 foo.example.com\n"
            "fe80::21b:fcff:feee:5a1d foo.example.com\n")
        self.assertEqual(
            "::1", searchFileFor(hosts.path, "foo.example.com"))
Gracefully terminate all services and kill the main PantsDaemon loop.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/names/test/test_hosts.py/SearchHostsFileTests.test_firstAddress--crossover with--dataset/ETHPy150Open pantsbuild/pants/src/python/pants/pantsd/pants_daemon.py/PantsDaemon.shutdown