'Test the error cases.'

def test_errors(self):

    assert_raises(ValueError, normalize, [1, 2], 0)
    assert_raises(ValueError, normalize, [1, 2], [[1]])
    assert_raises(ValueError, normalize, [[[1, 2]]], 1)
