예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 def test_empty_imput(self):
     assert split_first("", "") == ("", "", None)
예제 #4
0
 def test_empty_imput(self):
     assert split_first("", "") == ("", "", None)