def test_calc_res(self): start = 0 stop1 = secs_per_res['MIN240']*801 stop2 = stop1 - 1 self.assertEqual(calc_res(start, stop1), 'MIN1440') self.assertEqual(calc_res(start, stop2), 'MIN240')
def test_resolution_240min(self): self.assertEquals('MIN240', bf.calc_res(0, 801 * 60 * 60))
def test_resolution_14400min(self): self.assertEquals('MIN1440', bf.calc_res(0, 801 * 240 * 60))
def test_resolution_5min(self): self.assertEquals('MIN5', bf.calc_res(0, 401 * 60))
def test_resolution_60min(self): self.assertEquals('MIN60', bf.calc_res(0, 801 * 20 * 60))
def test_calc_res(self): start = 0 stop1 = secs_per_res['MIN240'] * 801 stop2 = stop1 - 1 self.assertEqual(calc_res(start, stop1), 'MIN1440') self.assertEqual(calc_res(start, stop2), 'MIN240')
def test_resolution_full(self): self.assertEquals('FULL', bf.calc_res(0, 60))
def test_resolution_14400min(self): self.assertEquals("MIN1440", bf.calc_res(0, 801 * 240 * 60))
def test_resolution_240min(self): self.assertEquals("MIN240", bf.calc_res(0, 801 * 60 * 60))
def test_resolution_60min(self): self.assertEquals("MIN60", bf.calc_res(0, 801 * 20 * 60))
def test_resolution_5min(self): self.assertEquals("MIN5", bf.calc_res(0, 401 * 60))
def test_resolution_full(self): self.assertEquals("FULL", bf.calc_res(0, 60))