forked from openlp/openlp
Fix comment
This commit is contained in:
parent
2a557f3973
commit
de8cbc55d6
@ -220,11 +220,11 @@ class TestCommonFunctions(TestCase):
|
|||||||
assert normalized_string == string
|
assert normalized_string == string
|
||||||
|
|
||||||
def test_normalize_str_removes_null_byte(self):
|
def test_normalize_str_removes_null_byte(self):
|
||||||
# GIVEN: a string containing newlines
|
# GIVEN: a string containing a null byte
|
||||||
string = 'somet\x00hing'
|
string = 'somet\x00hing'
|
||||||
# WHEN: normalize is called
|
# WHEN: normalize is called
|
||||||
normalized_string = normalize_str(string)
|
normalized_string = normalize_str(string)
|
||||||
# THEN: string is unchanged
|
# THEN: nullbyte is removed
|
||||||
assert normalized_string == 'something'
|
assert normalized_string == 'something'
|
||||||
|
|
||||||
def test_normalize_str_replaces_crlf_with_lf(self):
|
def test_normalize_str_replaces_crlf_with_lf(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user