예제 #1
0
파일: test_xsc.py 프로젝트: roskakori/xsc
 def testCanConvertEdmBalance(self):
     template = xsc.XscTemplate(_EdmBalanceXscPath)
     sourceNameToPathMap = {
         'edmNotification': (
             os.path.join('test', 'edmBalanceNotification.csv'),
             os.path.join('test', 'cid_edmBalanceNotification.xls')
         ),
         'edmPeriod': (
             os.path.join('test', 'edmBalancePeriod.csv'),
             os.path.join('test', 'cid_edmBalancePeriod.xls')
         )
     }
     targetXmlFilePath = os.path.join('test', 'edmBalance.xml')
     xsc.convert(template, sourceNameToPathMap, targetXmlFilePath)
예제 #2
0
파일: test_xsc.py 프로젝트: roskakori/xsc
 def testCanProcessPythonCode(self):
     template = xsc.XscTemplate(_PythonXscPath)
     self.assertTrue(template)
     targetXmlFilePath = os.path.join('test', 'python.xml')
     xsc.convert(template, {}, targetXmlFilePath)
     self.assertFileMatches(targetXmlFilePath)
예제 #3
0
파일: test_xsc.py 프로젝트: roskakori/xsc
 def testCanProcessComments(self):
     template = xsc.XscTemplate(_CommentXscPath)
     self.assertTrue(template)
     targetXmlFilePath = os.path.join('test', 'comment.xml')
     xsc.convert(template, {}, targetXmlFilePath)
     self.assertFileMatches(targetXmlFilePath)
예제 #4
0
파일: test_xsc.py 프로젝트: roskakori/xsc
 def testCanResolveImportedSymbols(self):
     template = xsc.XscTemplate(_ImportXscPath)
     self.assertTrue(template)
     targetXmlFilePath = os.path.join('test', 'import.xml')
     xsc.convert(template, {}, targetXmlFilePath)