'Check LinuxPasswdHomedirs artifacts.'

def testLinuxPasswdHomedirsArtifact(self):

    with vfs_test_lib.VFSOverrider(rdf_paths.PathSpec.PathType.OS, vfs_test_lib.FakeTestDataVFSHandler):
        fd = self.RunCollectorAndGetCollection(['LinuxPasswdHomedirs'], client_mock=self.client_mock)
        self.assertEqual(len(fd), 3)
        self.assertItemsEqual([x.username for x in fd], [u'exomemory', u'gevulot', u'gogol'])
        for user in fd:
            if (user.username == u'exomemory'):
                self.assertEqual(user.full_name, u'Never    Forget    (admin)')
                self.assertEqual(user.gid, 47)
                self.assertEqual(user.homedir, u'/var/lib/exomemory')
                self.assertEqual(user.shell, u'/bin/sh')
                self.assertEqual(user.uid, 46)
