import IMP import IMP.test import IMP.restrainer class RestraintTest(IMP.test.TestCase): def setUp(self): IMP.set_log_level(IMP.VERBOSE) IMP.test.TestCase.setUp(self) RepParser = IMP.restrainer.XMLRepresentation(self.get_input_file_name('pdb_representation.xml')) RestraintParser = IMP.restrainer.XMLRestraint(self.get_input_file_name('pdb_methods_restraint.xml')) self.representation = RepParser.run() self.restraint = RestraintParser.run() self.Model = self.representation.to_model() self.restraint.add_to_representation(self.representation) def test_show(self): """Check multiple input restraints for pdb""" self.Model.show() self.Model.evaluate(False) if __name__ == '__main__': IMP.test.main()