/[escript]/trunk/escriptcore/test/python/run_symbolic.py
ViewVC logotype

Diff of /trunk/escriptcore/test/python/run_symbolic.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4983 by jfenwick, Wed May 14 01:13:23 2014 UTC revision 4984 by sshaw, Mon Jun 2 02:50:34 2014 UTC
# Line 36  __author__="Cihan Altinay" Line 36  __author__="Cihan Altinay"
36    
37  from esys.escript import *  from esys.escript import *
38  import esys.escriptcore.utestselect as unittest  import esys.escriptcore.utestselect as unittest
39    from esys.escriptcore.testing import *
40  import numpy  import numpy
41    
42  sympyavail=True  sympyavail=True
# Line 8624  class SymbolicTestCase(unittest.TestCase Line 8625  class SymbolicTestCase(unittest.TestCase
8625          self.assertEqual(u._subs, u[0]._subs, "indexing did not preserve data substitution")          self.assertEqual(u._subs, u[0]._subs, "indexing did not preserve data substitution")
8626          self.assertTrue(list(u[0]._subs.keys())[0] in a[0]._subs, "indexing did not preserve data substitution")          self.assertTrue(list(u[0]._subs.keys())[0] in a[0]._subs, "indexing did not preserve data substitution")
8627    
8628  if __name__ == "__main__":  if __name__ == '__main__':
8629      import sys      run_tests(__name__, exit_on_failure=True)
     suite = unittest.TestSuite()  
     suite.addTest(unittest.makeSuite(SymbolicTestCase))  
     s=unittest.TextTestRunner(verbosity=2).run(suite)  
     if not s.wasSuccessful(): sys.exit(1)  
8630    

Legend:
Removed from v.4983  
changed lines
  Added in v.4984

  ViewVC Help
Powered by ViewVC 1.1.26