def test_to_general_placeables(self): basetree = base.to_base_placeables(self.elem) gentree = general.to_general_placeables(basetree) assert gentree == self.elem