'Assert that parser input produces the expected AMI artifacts.
:param ParserData parser_data: The input and and expected AMI map.'

def assert_packer_amis(self, parser_data):

    parser = _PackerOutputParser()
    with parser_data.input.open('r') as f:
        for line in f:
            parser.parse_line(line)
    self.assertEqual(parser_data.output, parser.packer_amis())
