def test_input(self): assert split_first("hello//world", "?/") == ("hello", "/world", "/") assert split_first("hello??/world", "?/") == ("hello", "?/world", "?") assert split_first("hello world", "?/") == ("hello world", "", None)
def test_empty_imput(self): assert split_first("", "") == ("", "", None)