def test_is_empty(self): cs = Changeset('doc_id', 'user_id', []) assert cs.is_empty() cs.add_op(Op('set',[],val='')) assert not cs.is_empty()