Files
openmmforcefields/amber/test/test.py
2017-04-18 12:15:50 -04:00

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()