コード例 #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
ファイル: test_utils.py プロジェクト: thokle90/dyc
 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
ファイル: test_utils.py プロジェクト: thokle90/dyc
 def test_whitespace(self):
     space = '                '
     text = '{space}Such a long whitespace'.format(space=space)
     expected = space
     got = get_leading_whitespace(text)
     assert expected == got