def _verify_buckets_status(self, revision_id, comparison_revision_id,
                               expected):
        # Verify that actual and expected results match, despite the order of
        # `comparison_revision_id` and `revision_id` args.
        revision_ids = [revision_id, comparison_revision_id]
        for rev_ids in (revision_ids, reversed(revision_ids)):
            actual = db_api.revision_diff(*rev_ids)
            self.assertEqual(expected, actual)