def test_is_character_at_index_not_whitespace_with_whitespace_at_end():
    """
    Make sure that a string with whitespace at the index is handled properly.
    """

    # Arrange
    input_string = "this is a test "
    start_index = len(input_string) - 1
    expected_output = False

    # Act
    actual_output = ParserHelper.is_character_at_index_not_whitespace(
        input_string, start_index)

    # Assert
    assert expected_output == actual_output
def test_is_character_at_index_not_whitespace_without_whitespace():
    """
    Make sure that a string with whitespace at the index is handled properly.
    """

    # Arrange
    input_string = "a"
    start_index = 0
    expected_output = True

    # Act
    actual_output = ParserHelper.is_character_at_index_not_whitespace(
        input_string, start_index)

    # Assert
    assert expected_output == actual_output
def test_is_character_at_index_not_whitespace_with_empty_string():
    """
    Make sure that an empty string is handled properly.
    """

    # Arrange
    input_string = ""
    start_index = 0
    expected_output = False

    # Act
    actual_output = ParserHelper.is_character_at_index_not_whitespace(
        input_string, start_index)

    # Assert
    assert expected_output == actual_output