[h5py] 399/455: Rearrange tests

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:19:54 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to annotated tag 1.3.0
in repository h5py.

commit db6e23671a82a76afc13b4a69422a6b0d3c381df
Author: andrewcollette <andrew.collette at gmail.com>
Date:   Tue Feb 9 05:49:57 2010 +0000

    Rearrange tests
---
 h5py/tests/high/test_hlobject.py | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/h5py/tests/high/test_hlobject.py b/h5py/tests/high/test_hlobject.py
index cbe362a..04b2ee5 100644
--- a/h5py/tests/high/test_hlobject.py
+++ b/h5py/tests/high/test_hlobject.py
@@ -40,16 +40,24 @@ class TestComparison(Base):
         self.assert_(not g == self.f)
         self.assert_(g != self.f)
 
-class TestPropFile(Base):
+class TestProps(Base):
 
     def test_file2(self):
-        """ (HLObject) .file property on subclasses """
+        """ (HLObject) .file """
         g = self.f.create_group('foo')
         g2 = self.f.create_group('foo/bar')
         self.assertEqual(self.f, self.f.file)
         self.assertEqual(self.f, g.file)
         self.assertEqual(self.f, g2.file)
 
+    def test_parent(self):
+        """ (HLObject) .parent """
+        self.assertEqual(self.f.parent, self.f['/'])
+        g = self.f.create_group('a')
+        g2 = self.f.create_group('a/b')
+        self.assertEqual(g2.parent, g)
+        self.assertEqual(g.parent, self.f['/'])
+
 class TestProps(Base):
 
     @tests.require(api=18)
@@ -64,15 +72,7 @@ class TestProps(Base):
         lapl = self.f._lapl
         self.assertIsInstance(lapl, h5py.h5p.PropLAID)
 
-class TestParent(Base):
 
-    def test_parent(self):
-        """ (HLObject) .parent """
-        self.assertEqual(self.f.parent, self.f['/'])
-        g = self.f.create_group('a')
-        g2 = self.f.create_group('a/b')
-        self.assertEqual(g2.parent, g)
-        self.assertEqual(g.parent, self.f['/'])
 
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/h5py.git



More information about the debian-science-commits mailing list