| Total Complexity | 1 |
| Total Lines | 11 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from torchio.data import LabelSampler |
||
| 2 | from ...utils import TorchioTestCase |
||
| 3 | |||
| 4 | |||
| 5 | class TestLabelSampler(TorchioTestCase): |
||
| 6 | """Tests for `LabelSampler` class.""" |
||
| 7 | |||
| 8 | def test_label_sampler(self): |
||
| 9 | sampler = LabelSampler(5, 'label') |
||
| 10 | next(iter(sampler(self.sample))) |
||
| 11 |