示例#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('') == ''