Mercurial > repos > imgteam > points2labelimage
comparison test_utils.py @ 6:22bb32eae6a1 draft default tip
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/points2labelimage/ commit edac062b00490276ef00d094e0594abdb3a3f23c
| author | imgteam |
|---|---|
| date | Thu, 06 Nov 2025 09:59:34 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 5:4a49f74a3c14 | 6:22bb32eae6a1 |
|---|---|
| 1 import unittest | |
| 2 | |
| 3 import points2label | |
| 4 | |
| 5 | |
| 6 class get_list_depth(unittest.TestCase): | |
| 7 | |
| 8 def test(self): | |
| 9 self.assertEqual(points2label.get_list_depth(1234), 0) | |
| 10 self.assertEqual(points2label.get_list_depth([]), 1) | |
| 11 self.assertEqual(points2label.get_list_depth([1, 2, 3]), 1) | |
| 12 self.assertEqual(points2label.get_list_depth([1, [2, 3]]), 2) | |
| 13 self.assertEqual(points2label.get_list_depth([[1], [2, 3]]), 2) |
