MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / TestParser

Class TestParser

pymysql/tests/test_optionfile.py:18–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
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

no outgoing calls

Tested by

no test coverage detected