Skip to content

Commit 023214f

Browse files
committed
chore(test): refactoring the sanitizer test
1 parent 2c45ba7 commit 023214f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/test_utils.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ def mock_input(s):
3434

3535
def test_sanitize_as_empty_string():
3636
string = 'asopdfha'
37-
string2 = None
3837
string = utils.sanitize_as_empty_string(string)
38+
if not string == 'asopdfha':
39+
raise AssertionError()
40+
41+
string2 = None
3942
string2 = utils.sanitize_as_empty_string(string2)
40-
if not (string == 'asopdfha' and string2 == ''):
43+
if not string2 == '':
4144
raise AssertionError()
4245

4346

0 commit comments

Comments
 (0)