'Test if the behavior matches str.split with given maxsplit.'

@pytest.mark.parametrize('s,    maxsplit', [('foo    bar    baz', 1), ('        foo    bar    baz        ', 0)], ids=repr)
def test_str_split_maxsplit(self, s, maxsplit):

    actual = split.simple_split(s, maxsplit=maxsplit)
    expected = s.rstrip().split(maxsplit=maxsplit)
    assert (actual == expected)
