Пример #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
 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
 def test_implied_source_nonexistent_file(self):
     self.assertIsNone(utils.implied_source('nonexistent_file.hpp'))