def METHOD_NAME(self, _, errors, __):
    """
        plugin "beancount.plugins.check_commodity"
        2011-01-01 open Expenses:Restaurant
        2011-01-01 open Assets:Other
        2011-05-17 * "Something"
          Expenses:Restaurant   1.00 USD
          Assets:Other         -1.00 USD
        2012-01-01 balance Expenses:Restaurant   0.00 CAD
    """
    self.assertEqual([check_commodity.CheckCommodityError] * 2,
                     list(map(type, errors)))