Пример #1
0
 def test_fuzzing(self, value):
     assert isinstance(quiz.escape(value), str)
Пример #2
0
 def test_escape_needed(self, value, expect):
     assert quiz.escape(value) == expect
Пример #3
0
 def test_no_escape_needed(self, value):
     assert quiz.escape(value) == value
Пример #4
0
 def test_empty(self):
     assert quiz.escape("") == ""
Пример #5
0
 def test_fuzzing(self, value):
     assert isinstance(quiz.escape(value), six.text_type)
Пример #6
0
 def test_empty(self):
     assert quiz.escape('') == ''