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

tests.datasets.test_ixi   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 4

2 Methods

Rating   Name   Duplication   Size   Complexity  
A TestIXI.test_not_downloaded() 0 3 2
A TestIXI.test_tiny_not_downloaded() 0 3 2
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