Example #1
0
 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)
Example #2
0
 def testCanProcessPythonCode(self):
     template = xsc.XscTemplate(_PythonXscPath)
     self.assertTrue(template)
     targetXmlFilePath = os.path.join('test', 'python.xml')
     xsc.convert(template, {}, targetXmlFilePath)
     self.assertFileMatches(targetXmlFilePath)
Example #3
0
 def testCanProcessComments(self):
     template = xsc.XscTemplate(_CommentXscPath)
     self.assertTrue(template)
     targetXmlFilePath = os.path.join('test', 'comment.xml')
     xsc.convert(template, {}, targetXmlFilePath)
     self.assertFileMatches(targetXmlFilePath)
Example #4
0
 def testCanResolveImportedSymbols(self):
     template = xsc.XscTemplate(_ImportXscPath)
     self.assertTrue(template)
     targetXmlFilePath = os.path.join('test', 'import.xml')
     xsc.convert(template, {}, targetXmlFilePath)