/[escript]/trunk/escript/test/python/run_xml.py
ViewVC logotype

Diff of /trunk/escript/test/python/run_xml.py

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

revision 918 by gross, Wed Jan 3 06:30:00 2007 UTC revision 956 by gross, Tue Feb 13 00:03:40 2007 UTC
# Line 12  from esys.escript.modelframe import Mode Line 12  from esys.escript.modelframe import Mode
12  import math  import math
13  from cStringIO import StringIO  from cStringIO import StringIO
14  from xml.dom import minidom  from xml.dom import minidom
15    import numarray
16    
17  class XMLDocumentTestCase(unittest.TestCase):  class XMLDocumentTestCase(unittest.TestCase):
18    
# Line 199  class ParamaterSetTestCase(unittest.Test Line 200  class ParamaterSetTestCase(unittest.Test
200          assert type(doc.inttest)==int          assert type(doc.inttest)==int
201    
202      def testFromDomNumarrayVector(self):      def testFromDomNumarrayVector(self):
         import numarray  
203          p3 = ParameterSet()          p3 = ParameterSet()
204          mynumarray = numarray.array([3., 4., 5.], type=numarray.Float64)          mynumarray = numarray.array([3., 4., 5.], type=numarray.Float64)
205          p3.declareParameter(numtest=mynumarray)          p3.declareParameter(numtest=mynumarray)
# Line 208  class ParamaterSetTestCase(unittest.Test Line 208  class ParamaterSetTestCase(unittest.Test
208          assert type(doc.numtest) == numarray.NumArray          assert type(doc.numtest) == numarray.NumArray
209    
210      def testFromDomNumarrayMulti(self):      def testFromDomNumarrayMulti(self):
         import numarray  
211          p3 = ParameterSet()          p3 = ParameterSet()
212          mynumarray = numarray.array([[1., 2., 3.], [3., 4., 5.]], type=numarray.Float64)          mynumarray = numarray.array([[1., 2., 3.], [3., 4., 5.]], type=numarray.Float64)
213          p3.declareParameter(numtest=mynumarray)          p3.declareParameter(numtest=mynumarray)
# Line 217  class ParamaterSetTestCase(unittest.Test Line 216  class ParamaterSetTestCase(unittest.Test
216          assert type(doc.numtest) == numarray.NumArray          assert type(doc.numtest) == numarray.NumArray
217    
218      def testLists(self):      def testLists(self):
         import numarray  
219          p4 = ParameterSet()          p4 = ParameterSet()
220          mylist = [True, False, False, True]          mylist = [True, False, False, True]
221          p4.declareParameter(listest=mylist)          p4.declareParameter(listest=mylist)

Legend:
Removed from v.918  
changed lines
  Added in v.956

  ViewVC Help
Powered by ViewVC 1.1.26