Passed
Push — master ( 468b30...4c09bc )
by Fernando
01:11
created

tests.datasets.test_ixi.TestIXI.test_ixi()   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
nop 1
1
from torchio.datasets import IXI, IXITiny
2
from ..utils import TorchioTestCase
3
4
5
class TestIXI(TorchioTestCase):
6
    """Tests for `ixi` module."""
7
8
    def test_not_downloaded(self):
9
        with self.assertRaises(RuntimeError):
10
            IXI('testing123', download=False)
11
12
    def test_tiny_not_downloaded(self):
13
        with self.assertRaises(RuntimeError):
14
            IXITiny('testing123', download=False)
15