def test_bounded_start_bounded_end(self): ir = [ [ "31/12/2013", "-1.00", "Description" ], [ "31/01/2014", "-1.00", "Description" ], [ "01/02/2014", "-1.00", "Description" ] ] expected = [ ir[1] ] self.assertEquals(expected, list(window.window("01/2014", "02/2014", ir)))
def test_unbounded_start_unbounded_end(self): ir = [ [ "01/01/2014", "-1.00", "Description" ], [ "01/02/2014", "-1.00", "Description" ] ] self.assertEquals(ir, list(window.window(None, None, ir)))