def METHOD_NAME(self, mock_cfn_yaml):
    mock_cfn_yaml.side_effect = UnicodeDecodeError("", b"\x00\x00", 0, 0, "reason")
    _, matches = cfnlint.decode.decode(filename="test")
    self.assertEqual(len(matches), 1)
    self.assertEqual(matches[0].rule.id, "E0000")