'Test that an error is raised if mode is invalid.'

def test_kernel_normalization_mode(self):

    with pytest.raises(ValueError):
        kernel = CustomKernel(np.ones(3))
        kernel.normalize(mode=u'invalid')
