예제 #1
0
파일: test_utils.py 프로젝트: gruberchr/bob
    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)
예제 #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
예제 #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
예제 #4
0
파일: test_utils.py 프로젝트: gruberchr/bob
 def testSingle(self):
     self.assertEqual(joinScripts(["asdf"], "not used"), "asdf")
     self.assertEqual(joinScripts([None], "not used"), None)
예제 #5
0
파일: test_utils.py 프로젝트: gruberchr/bob
 def testEmpty(self):
     self.assertEqual(joinScripts([], "not used"), None)
예제 #6
0
 def testSingle(self):
     assert joinScripts(["asdf"]) == "asdf"
     assert joinScripts([None]) == None
예제 #7
0
 def testEmpty(self):
     assert joinScripts([]) == None
예제 #8
0
 def testSingle(self):
     assert joinScripts(["asdf"]) == "asdf"
     assert joinScripts([None]) == None
예제 #9
0
 def testEmpty(self):
     assert joinScripts([]) == None