Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
    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
Exemplo n.º 3
0
    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
Exemplo n.º 4
0
 def testSingle(self):
     self.assertEqual(joinScripts(["asdf"], "not used"), "asdf")
     self.assertEqual(joinScripts([None], "not used"), None)
Exemplo n.º 5
0
 def testEmpty(self):
     self.assertEqual(joinScripts([], "not used"), None)
Exemplo n.º 6
0
 def testSingle(self):
     assert joinScripts(["asdf"]) == "asdf"
     assert joinScripts([None]) == None
Exemplo n.º 7
0
 def testEmpty(self):
     assert joinScripts([]) == None
Exemplo n.º 8
0
 def testSingle(self):
     assert joinScripts(["asdf"]) == "asdf"
     assert joinScripts([None]) == None
Exemplo n.º 9
0
 def testEmpty(self):
     assert joinScripts([]) == None