Files
PlantAI-dev/tools/pymol-open-source/testing/tests/jira/PYMOL-2985.py
T
2026-08-03 18:42:47 +08:00

17 lines
435 B
Python

'''
"clean" depends on atom sorting
'''
from pymol import cmd, testing
@testing.requires_version('2.1')
@testing.requires('incentive', 'no_edu')
class TestClean(testing.PyMOLTestCase):
def test(self):
cmd.load(self.datafile('PYMOL-2985.sdf'), 'm1')
cset_before = cmd.get_coordset('m1')
cmd.clean('m1')
cset_after = cmd.get_coordset('m1')
self.assertArrayNotEqual(cset_before, cset_after)