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)
def from_file(self, text): return ConfigFile.from_file(BytesIO(text))