コード例 #1
0
ファイル: test.py プロジェクト: shaunokeefe/deletealldata
    def test_day(self):
        root = "/first/second"
        current = "/first/second/dataset/year/month"

        level = calculate_recursion_depth(root, current)

        self.assertEqual(level, 'day')
コード例 #2
0
ファイル: test.py プロジェクト: shaunokeefe/deletealldata
    def test_dataset(self):
        root = "/first/second"
        current = "/first/second"

        level = calculate_recursion_depth(root, current)

        self.assertEqual(level, 'dataset')