'Test parsing of wtmp file.'

def testWtmpParser(self):

    parser = linux_file_parser.LinuxWtmpParser()
    path = os.path.join(self.base_path, 'VFSFixture/var/log/wtmp')
    with open(path, 'rb') as wtmp_fd:
        out = list(parser.Parse(None, wtmp_fd, None))
    self.assertEqual(len(out), 3)
    self.assertItemsEqual([('%s:%d' % (x.username, x.last_logon)) for x in out], ['user1:1296552099000000', 'user2:1296552102000000', 'user3:1296569997000000'])
