def test2_to_and_from_dict(self): """ Test exporting to and instanciating from dictionaries """ o1 = BaseObject(True) o2 = BaseObject.from_dict(o1.to_dict()) self.assert_not_none(o2) self.assert_equal(o1.get_id(), o2.get_id())