'Checks if the netstring has a trailing comma at the expected position.
@raise NetstringParseError: if the last payload character is
anything but a comma.'

def _checkForTrailingComma(self):

    if (self._payload.getvalue()[(-1):] != ','):
        raise NetstringParseError(self._MISSING_COMMA)
