MCPcopy Index your code
hub / github.com/PyMySQL/PyMySQL / test_escape_string

Method test_escape_string

pymysql/tests/test_converters.py:12–13  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10
11class TestConverter(TestCase):
12 def test_escape_string(self):
13 self.assertEqual(converters.escape_string("foo\nbar"), "foo\\nbar")
14
15 def test_convert_datetime(self):
16 expected = datetime.datetime(2007, 2, 24, 23, 6, 20)

Callers

nothing calls this directly

Calls 1

escape_stringMethod · 0.80

Tested by

no test coverage detected