def testDual(self): self.assertEqual(joinScripts(["asdf", "qwer"], "\n"), "asdf\nqwer") self.assertEqual(joinScripts(["asdf", None], "unused"), "asdf") self.assertEqual(joinScripts([None, "asdf"], "unused"), "asdf") self.assertEqual(joinScripts([None, None], "unused"), None)
def testDual(self): s = joinScripts(["asdf", "qwer"]).splitlines() assert "asdf" in s assert "qwer" in s assert s.index("asdf") < s.index("qwer") assert joinScripts(["asdf", None]) == "asdf" assert joinScripts([None, "asdf"]) == "asdf" assert joinScripts([None, None]) == None
def testSingle(self): self.assertEqual(joinScripts(["asdf"], "not used"), "asdf") self.assertEqual(joinScripts([None], "not used"), None)
def testEmpty(self): self.assertEqual(joinScripts([], "not used"), None)
def testSingle(self): assert joinScripts(["asdf"]) == "asdf" assert joinScripts([None]) == None
def testEmpty(self): assert joinScripts([]) == None