def test_leading_space(): assert leading_space('test') == '' assert leading_space(' test') == ' ' assert leading_space(' test') == ' ' assert leading_space(' 2016-10-31 * "Test" "Test"') == ' ' assert leading_space('\r\t\r\ttest') == '\r\t\r\t' assert leading_space('\ntest') == '\n'
def test_leading_space() -> None: assert leading_space("test") == " " assert leading_space(" test") == " " assert leading_space(" test") == " " assert leading_space(' 2016-10-31 * "Test" "Test"') == " " assert leading_space("\r\t\r\ttest") == "\r\t\r\t" assert leading_space("\ntest") == "\n"