MCPcopy
hub / github.com/PyMySQL/PyMySQL / test_string

Method test_string

pymysql/tests/test_optionfile.py:19–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17
18class TestParser(TestCase):
19 def test_string(self):
20 parser = Parser()
21 parser.read_file(StringIO(_cfg_file))
22 self.assertEqual(parser.get("default", "string"), "foo")
23 self.assertEqual(parser.get("default", "quoted"), "bar")
24 self.assertEqual(parser.get("default", "single-quoted"), "foobar")

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
ParserClass · 0.90

Tested by

no test coverage detected