コード例 #1
0
ファイル: test_path.py プロジェクト: gabrielelanaro/solfege
 def test_next(self):
     p = Path((1, 2, 3))
     self.assert_(p.next(), (1, 2, 4))
コード例 #2
0
ファイル: test_path.py プロジェクト: gabrielelanaro/solfege
 def test_child(self):
     p = Path((1, 2, 3))
     self.assert_(p.child(), (1, 2, 3, 0))
コード例 #3
0
ファイル: test_path.py プロジェクト: gabrielelanaro/solfege
 def test_parent(self):
     p = Path((1, 2, 3))
     self.assert_(p.parent(), (1, 2))
コード例 #4
0
ファイル: test_path.py プロジェクト: gabrielelanaro/solfege
 def test_prev(self):
     p = Path((1, 2, 3))
     self.assert_(p.prev(), (1, 2, 2))