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