def assert_parser_error(self, build_file, err_string):
    with self.assertRaises(BuildFileParser.BuildFileParserError) as ctx:
        self.build_file_parser.parse_build_file(build_file)
    self.assertIn(err_string, str(ctx.exception))
def assert_parser_error(self, build_file, err_string):
    with self.assertRaises(BuildFileParser.BuildFileParserError) as ctx:
        self.build_file_parser.parse_build_file(build_file)
    self.assertIn(err_string, str(ctx.exception))