示例#1
0
文件: __init__.py 项目: shenki/fpos
 def test_transform_stgeorge(self):
     stgeorge = iter([ [ "Date", "Description", "Debit", "Credit", "Balance" ],
             [ "01/01/2014", "Positive", None, "1.0", "1.0" ],
             [ "01/01/2014", "Negative", "1.0", None, "0.0" ] ])
     self.assertEquals(self.expected, list(transform.transform("stgeorge", stgeorge)))
示例#2
0
文件: __init__.py 项目: shenki/fpos
 def test_transform_commbank(self):
     commbank = [ [ "01/01/2014", "1.0", "Positive", "1.0" ],
             [ "01/01/2014", "-1.0", "Negative", "0.0" ] ]
     self.assertEquals(self.expected, list(transform.transform("commbank", commbank)))
示例#3
0
文件: __init__.py 项目: shenki/fpos
 def test_transform_anz(self):
     anz = self.expected
     self.assertEquals(self.expected, list(transform.transform("anz", anz)))
示例#4
0
文件: __init__.py 项目: shenki/fpos
 def test_transform_nab(self):
     nab = iter([ [ "01-Jan-14", "1.00", "1", None, None, "Positive", "1.00", None ],
         [ "01-Jan-14", "-1.00", "2", None, None, "Negative", "0.00", None ] ])
     self.assertEquals(self.expected, list(transform.transform("nab", nab)))