'An artifact is recorded when the first ``end`` parameter is
encountered.'

def test_artifact(self):

    parser = _PackerOutputParser()
    parser.parse_line('1450420216,amazon-ebs,artifact,0,builder-id,mitchellh.amazonebs\n')
    parser.parse_line('1450420216,amazon-ebs,artifact,0,end\n')
    self.assertEqual([{u'type': u'amazon-ebs', u'builder-id': u'mitchellh.amazonebs'}], parser.artifacts)
