예제 #1
0
 def test_implied_source(self):
     relativefilename = "dottypaths/d2/d2.hpp"
     basename = os.path.splitext(relativefilename)[0]
     expected = os.path.join(uth.samplesdir(), basename + ".cpp")
     result = utils.implied_source(
         os.path.join(uth.samplesdir(), relativefilename))
     self.assertEqual(expected, result)
예제 #2
0
파일: test_utils.py 프로젝트: Zomojo/Cake
 def test_implied_source(self):
     relativefilename = 'dottypaths/d2/d2.hpp'
     basename = os.path.splitext(relativefilename)[0]
     expected = os.path.join(uth.samplesdir(), basename + '.cpp')
     result = utils.implied_source(
         os.path.join(
             uth.samplesdir(),
             relativefilename))
     self.assertEqual(expected, result)
예제 #3
0
 def test_implied_source_nonexistent_file(self):
     self.assertIsNone(utils.implied_source("nonexistent_file.hpp"))
예제 #4
0
파일: test_utils.py 프로젝트: Zomojo/Cake
 def test_implied_source_nonexistent_file(self):
     self.assertIsNone(utils.implied_source('nonexistent_file.hpp'))