Пример #1
0
 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
Пример #2
0
 def test_tabs(self):
     text = '\t\tHello'
     expected = '\t\t'
     got = get_leading_whitespace(text)
     assert expected == got
Пример #3
0
 def test_tabs(self):
     """Test tabs functionality"""
     text = '\t\tHello'
     expected = '\t\t'
     got = get_leading_whitespace(text)
     assert expected == got
Пример #4
0
 def test_whitespace(self):
     space = '                '
     text = '{space}Such a long whitespace'.format(space=space)
     expected = space
     got = get_leading_whitespace(text)
     assert expected == got