'Compare block fields to check for equivalence.'

def assertBlocksEqualByFields(self, expected_block, actual_block):

    self.assertEqual(expected_block.fields, actual_block.fields)
    for field in expected_block.fields.values():
        self.assertFieldEqual(field, expected_block, actual_block)
