Example #1
0
    def test_day(self):
        root = "/first/second"
        current = "/first/second/dataset/year/month"

        level = calculate_recursion_depth(root, current)

        self.assertEqual(level, 'day')
Example #2
0
    def test_dataset(self):
        root = "/first/second"
        current = "/first/second"

        level = calculate_recursion_depth(root, current)

        self.assertEqual(level, 'dataset')