text: """
  $Id: testEsmfVM.py 2354 2012-07-11 15:28:14Z pletzer $
  
  Unit MPI
  
  """
  
  import ESMP
  from mpi4py import MPI
  import unittest
  
  class Test(unittest.TestCase):
      def setUp(self):
          pass
  
      def test1(self):
          comm = MPI.COMM_WORLD
          pe1 = comm.Get_rank()
          nprocs1 = comm.Get_size()
          vm = ESMP.ESMP_VMGetGlobal()
          pe2, nprocs2 = ESMP.ESMP_VMGet(vm)
          self.assertEqual(pe1, pe2)
          self.assertEqual(nprocs1, nprocs2)
          
          
  if __name__ == '__main__':
      ESMP.ESMP_Initialize()
      print ""
      suite = unittest.TestLoader().loadTestsFromTestCase(Test)
      unittest.TextTestRunner(verbosity = 1).run(suite)
  
  
  