Esempio n. 1
0
    def testSubmodules(self):
        cf = ConfigFile.from_file(
            BytesIO(b"""\
[submodule "core/lib"]
\tpath = core/lib
\turl = https://github.com/phhusson/QuasselC.git
"""))
        got = list(parse_submodules(cf))
        self.assertEqual(
            [(b'core/lib', b'https://github.com/phhusson/QuasselC.git',
              b'core/lib')], got)
Esempio n. 2
0
 def from_file(self, text):
     return ConfigFile.from_file(BytesIO(text))