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)
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)
def test_implied_source_nonexistent_file(self): self.assertIsNone(utils.implied_source("nonexistent_file.hpp"))
def test_implied_source_nonexistent_file(self): self.assertIsNone(utils.implied_source('nonexistent_file.hpp'))