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

TestIXI.test_not_downloaded()   A

Complexity

Conditions 2

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 2
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