Skip to content
Snippets Groups Projects
Select Git revision
  • 83e3a5779e7fa1dc0adcb910876de006452c7ba1
  • master default protected
  • develop protected
  • cmake_boost_refactor
  • ubuntu_ci
  • mmtf
  • non-orthogonal-maps
  • no_boost_filesystem
  • data_viewer
  • 2.11.1
  • 2.11.0
  • 2.10.0
  • 2.9.3
  • 2.9.2
  • 2.9.1
  • 2.9.0
  • 2.8.0
  • 2.7.0
  • 2.6.1
  • 2.6.0
  • 2.6.0-rc4
  • 2.6.0-rc3
  • 2.6.0-rc2
  • 2.6.0-rc
  • 2.5.0
  • 2.5.0-rc2
  • 2.5.0-rc
  • 2.4.0
  • 2.4.0-rc2
29 results

test_processor.py

Blame
  • user avatar
    Marco Biasini authored
    149fae31
    History
    test_processor.py 470 B
    import unittest
    from ost import conop, mol
    
    
    class TestProcessor(unittest.TestCase):
      def testPyWrap(self):
        class MyProc(conop.Processor):
          def __init__(self):
            conop.Processor.__init__(self)
            self.count =0
          def DoProcess(self, diag, ent):
            self.count+=1
        p = MyProc()
        ent = mol.CreateEntity()
        p.Process(ent)
        self.assertEqual(p.count, 1)
    
    if __name__ == "__main__":
      from ost import testutils
      testutils.RunTests()