mirror of
https://github.com/openmm/openmmforcefields.git
synced 2026-06-06 18:39:48 +09:00
20 lines
556 B
Python
20 lines
556 B
Python
import unittest
|
|
import os
|
|
os.chdir('..')
|
|
|
|
class Testamber2ommmScript(unittest.TestCase):
|
|
|
|
def test_leaprc(self):
|
|
""" Test conversion of a leaprc"""
|
|
cmd = ('python amber2openmm.py -i test/leaprc.ff14SB -if leaprc -od test/ffxml '
|
|
'--no-log --protein-test --nucleic-test')
|
|
os.system(cmd)
|
|
|
|
def test_yaml(self):
|
|
""" Test conversion of a short yaml"""
|
|
cmd = ('python amber2openmm.py -i test/test.yaml -od test/ffxml --no-log')
|
|
os.system(cmd)
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|