|
|
@ -43,15 +43,16 @@ class TestStripComments:
|
|
|
|
assert amc._strip_comments(all_comments) == u""
|
|
|
|
assert amc._strip_comments(all_comments) == u""
|
|
|
|
|
|
|
|
|
|
|
|
def test_all_whitespace(self):
|
|
|
|
def test_all_whitespace(self):
|
|
|
|
# Note: Do not remove the spaces on the blank lines below. They're
|
|
|
|
all_whitespace = (
|
|
|
|
# test data to show that the lines get removed despite having spaces
|
|
|
|
'\n'
|
|
|
|
# on them
|
|
|
|
' \n'
|
|
|
|
all_whitespace = u"""
|
|
|
|
'\n'
|
|
|
|
|
|
|
|
' \n'
|
|
|
|
|
|
|
|
'\t\t\r\n'
|
|
|
|
|
|
|
|
'\n'
|
|
|
|
\t\t\r\n
|
|
|
|
' '
|
|
|
|
""" # nopep8
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
assert amc._strip_comments(all_whitespace) == u""
|
|
|
|
assert amc._strip_comments(all_whitespace) == u""
|
|
|
|
|
|
|
|
|
|
|
|
def test_somewhat_normal(self):
|
|
|
|
def test_somewhat_normal(self):
|
|
|
|