You should also assert that ``label == name`` as per the docstring.