Exemplo n.º 1
0
 def test_arguments_are_dict(self):
     transform = tio.Noise({'im': 0}, {'im': 1}, {'im': 0})
     assert transform.arguments_are_dict()
Exemplo n.º 2
0
 def test_arguments_are_and_are_not_dict(self):
     transform = tio.Noise(0, {'im': 1}, {'im': 0})
     with self.assertRaises(ValueError):
         transform.arguments_are_dict()
Exemplo n.º 3
0
 def test_arguments_are_not_dict(self):
     transform = tio.Noise(0, 1, 0)
     assert not transform.arguments_are_dict()