def test_whitespace(self): """Test whitespace functionality""" space = ' ' text = '{space}Such a long whitespace'.format(space=space) expected = space got = get_leading_whitespace(text) assert expected == got
def test_tabs(self): text = '\t\tHello' expected = '\t\t' got = get_leading_whitespace(text) assert expected == got
def test_tabs(self): """Test tabs functionality""" text = '\t\tHello' expected = '\t\t' got = get_leading_whitespace(text) assert expected == got
def test_whitespace(self): space = ' ' text = '{space}Such a long whitespace'.format(space=space) expected = space got = get_leading_whitespace(text) assert expected == got