/[escript]/trunk/downunder/test/python/run_datasources.py
ViewVC logotype

Diff of /trunk/downunder/test/python/run_datasources.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 26  import numpy as np Line 26  import numpy as np
26  import os  import os
27  import sys  import sys
28  import esys.escriptcore.utestselect as unittest  import esys.escriptcore.utestselect as unittest
29    from esys.escriptcore.testing import *
30  from esys.escript import inf,sup,saveDataCSV,getMPISizeWorld  from esys.escript import inf,sup,saveDataCSV,getMPISizeWorld
31  from esys.downunder.datasources import *  from esys.downunder.datasources import *
32  from esys.downunder.domainbuilder import DomainBuilder  from esys.downunder.domainbuilder import DomainBuilder
# Line 387  class TestSeimicSource(unittest.TestCase Line 388  class TestSeimicSource(unittest.TestCase
388          self.assertTrue( ss != SeismicSource(x=1., y=2., omega=3., power = complex(4.,-4.), orientation=[5.,-6.],elevation=7.) )          self.assertTrue( ss != SeismicSource(x=1., y=2., omega=3., power = complex(4.,-4.), orientation=[5.,-6.],elevation=7.) )
389          self.assertTrue( ss != SeismicSource(x=1., y=2., omega=3., power = complex(4.,-4.), orientation=[5.,-6.],elevation=-7.) )          self.assertTrue( ss != SeismicSource(x=1., y=2., omega=3., power = complex(4.,-4.), orientation=[5.,-6.],elevation=-7.) )
390                    
391  if __name__ == "__main__":  if __name__ == '__main__':
392      suite = unittest.TestSuite()      run_tests(__name__, exit_on_failure=True)
     suite.addTest(unittest.makeSuite(TestNumpyData))  
     suite.addTest(unittest.makeSuite(TestErMapperData))  
     suite.addTest(unittest.makeSuite(TestNetCdfData))  
     suite.addTest(unittest.makeSuite(TestSeimicSource))  
     s=unittest.TextTestRunner(verbosity=2).run(suite)  
     if not s.wasSuccessful(): sys.exit(1)  
393    

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

  ViewVC Help
Powered by ViewVC 1.1.26