def METHOD_NAME(self):
    with os_helper.temp_cwd(None) as d:
        with os_helper.EnvironmentVarGuard() as environ:
            environ.set('HOME', d)
            self.assertRaises(FileNotFoundError, netrc.netrc)