'Test parsing of a status file.'

def testDebianPackagesStatusParser(self):

    parser = linux_software_parser.DebianPackagesStatusParser()
    path = os.path.join(self.base_path, 'dpkg_status')
    with open(path, 'rb') as data:
        out = list(parser.Parse(None, data, None))
    self.assertEqual(len(out), 2)
    self.assertEqual(('t1', 'v1'), (out[0].name, out[0].version))
    self.assertEqual(('t2', 'v2'), (out[1].name, out[1].version))
