[cig-commits] [commit] knepley/upgrade-petsc-interface: Update to Python unit tests for C++ interface changes. (7dc1717)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Thu Nov 7 13:03:23 PST 2013
Repository : ssh://geoshell/pylith
On branch : knepley/upgrade-petsc-interface
Link : https://github.com/geodynamics/pylith/compare/0939f414c62ec7c842d06d0541ea2c589f5c3766...7dc1717efea97bf36be5cf1ee76fac0388cf6dc1
>---------------------------------------------------------------
commit 7dc1717efea97bf36be5cf1ee76fac0388cf6dc1
Author: Brad Aagaard <baagaard at usgs.gov>
Date: Thu Nov 7 13:05:54 2013 -0800
Update to Python unit tests for C++ interface changes.
>---------------------------------------------------------------
7dc1717efea97bf36be5cf1ee76fac0388cf6dc1
unittests/pytests/topology/TestMeshField.py | 20 +++++---------------
unittests/pytests/topology/TestMeshFields.py | 1 -
2 files changed, 5 insertions(+), 16 deletions(-)
diff --git a/unittests/pytests/topology/TestMeshField.py b/unittests/pytests/topology/TestMeshField.py
index f3abe5f..2f06192 100644
--- a/unittests/pytests/topology/TestMeshField.py
+++ b/unittests/pytests/topology/TestMeshField.py
@@ -105,14 +105,14 @@ class TestMeshField(unittest.TestCase):
return
- def test_addDimensionOkay(self):
+ def test_dimensionalizeOkay(self):
"""
- Test addDimensionOkay().
+ Test dimensionalizeOkay().
"""
- self.assertEqual(False, self.field.addDimensionOkay())
+ self.assertEqual(False, self.field.dimensionalizeOkay())
- self.field.addDimensionOkay(True)
- self.assertEqual(True, self.field.addDimensionOkay())
+ self.field.dimensionalizeOkay(True)
+ self.assertEqual(True, self.field.dimensionalizeOkay())
return
@@ -124,16 +124,6 @@ class TestMeshField(unittest.TestCase):
return
- def test_newSection(self):
- """
- Test newSection().
- """
- self.field.newSection()
-
- # No test of result
- return
-
-
def test_newSectionDomain(self):
"""
Test newSection(domain).
diff --git a/unittests/pytests/topology/TestMeshFields.py b/unittests/pytests/topology/TestMeshFields.py
index b8db65c..1b9968d 100644
--- a/unittests/pytests/topology/TestMeshFields.py
+++ b/unittests/pytests/topology/TestMeshFields.py
@@ -74,7 +74,6 @@ class TestMeshFields(unittest.TestCase):
def test_add(self):
self.fields.add("field", "displacement")
field = self.fields.get("field")
- field.newSection()
self.assertEqual(2, field.spaceDim())
return
More information about the CIG-COMMITS
mailing list