def METHOD_NAME(self) -> None:
    gf = GroupFile("root:x:0:td-agent\nbin:x:1:a,b\n\ndaemon:x:2:\n\n")
    self.assertEqual(
        [
            GroupFileLine(name="root", id=0, members=["td-agent"]),
            GroupFileLine(name="bin", id=1, members=["a", "b"]),
            GroupFileLine(name="daemon", id=2, members=[]),
        ],
        list(gf.lines.values()),
    )