def test_arguments_are_dict(self): transform = tio.Noise({'im': 0}, {'im': 1}, {'im': 0}) assert transform.arguments_are_dict()
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()
def test_arguments_are_not_dict(self): transform = tio.Noise(0, 1, 0) assert not transform.arguments_are_dict()