예제 #1
0
파일: __init__.py 프로젝트: shenki/fpos
 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)))
예제 #2
0
파일: __init__.py 프로젝트: shenki/fpos
 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)))