'Two BlockData objects are equal iff all their attributes are equal.'

def __eq__(self, block_data):

    attrs = ['fields', 'block_type', 'definition', 'defaults', 'asides', 'edit_info']
    return all(((getattr(self, attr, None) == getattr(block_data, attr, None)) for attr in attrs))
