def test_failurecode(self): try: svnmerge.launch(self.cmd*10) except svnmerge.LaunchError, (ret, cmd, out): self.assertNotEqual(ret, 0) self.assertNotEqual(ret, None) self.assert_(out) self.assertEqual(cmd, self.cmd*10)
def test_basic(self): out = svnmerge.launch(self.cmd) self.assert_(out) for o in out: self.assertEqual(o[-1], "\n")
def getBlockedProperty(self): out = svnmerge.launch("svn pg %s ." % svnmerge.opts["block-prop"]) if len(out) == 0: return None else: return out[0].strip()
def multilaunch(self, cmds): for cmd in cmds.split("\n"): cmd = cmd.strip() svnmerge.launch(cmd % self.command_dict())
def launch(self, cmd, **kwargs): try: out = svnmerge.launch(cmd, split_lines=False) except svnmerge.LaunchError, (ret, cmd, out): return self._parseoutput(ret, out, **kwargs)
def multilaunch(self, cmds): for cmd in cmds.split("\n"): cmd = cmd.strip() if len(cmd) > 0: svnmerge.launch(cmd % self.command_dict())