Files
pymol-open-source/testing/tests/api/callback.py
2014-09-15 13:39:16 -04:00

13 lines
433 B
Python

from pymol import cmd, testing, stored, callback
@testing.requires_version('1.7.3.0')
class TestCallback(testing.PyMOLTestCase):
def testPseSupport(self):
cmd.load_callback(callback.Callback(), 'c1')
with testing.mktemp('tmp.pse') as session_filename:
cmd.save(session_filename)
cmd.delete('*')
cmd.load(session_filename)
self.assertTrue('c1' in cmd.get_names())