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)))
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)))
def test_transform_anz(self): anz = self.expected self.assertEquals(self.expected, list(transform.transform("anz", anz)))
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)))