Utilities for writing tests for Gerrit submit_rules/submit_filter