def test_asegurar_orden_cronologico_false(self): records = [Record("33", "S1", "1", "2019-06-21 21:36:29.906000", "2019-06-19 21:46:39.994000" , "SCL", "3"), Record("62", "S1", "1", "2019-06-20 02:01:19.488000", "2019-06-20 02:12:51.201000" , "S2", "5"), Record("63", "S2", "2", "2019-06-20 02:01:31.762000", "2019-06-20 02:11:31.676000" , "CAL", "5")] ruta = Ruta(records) self.assertFalse(ruta.asegurar_orden_cronologico())
def test_ruta_de_6(self): records = [Record("33", "S1", "1", "2019-06-19 21:36:29.906000", "2019-06-19 21:46:39.994000" , "SCL", "3"), Record("62", "S1", "1", "2019-06-20 02:01:19.488000", "2019-06-20 02:12:51.201000" , "CAL", "5"), Record("63", "CAL", "2", "2019-06-20 02:01:31.762000", "2019-06-20 02:11:31.676000" , "S2", "5")] ruta = Ruta(records) self.assertFalse(ruta.pasa_por(['SCL', 'S1', 'S2', 'CAL']))
def test_ruta_de_2(self): records = [Record("33", "SCL", "1", "2019-06-19 21:36:29.906000", "2019-06-19 21:46:39.994000" , "S1", "3"), Record("35", "S1", "2", "2019-06-19 21:49:24.291000", "2019-06-19 22:01:10.613000" , "S2", "1"), Record("39", "S2", "1", "2019-06-19 22:36:47.065000", "2019-06-19 22:48:33.412000" , "S1", "2"), Record("43", "S1", "2", "2019-06-19 23:09:02.921000", "2019-06-19 23:20:41.941000" , "SCL", "3")] ruta = Ruta(records) self.assertTrue(ruta.pasa_por(['SCL', 'S1', 'S2', 'S1', 'SCL']))
def setUp(self): self.r1 = Record("0", "CAL", "2", "2019-06-19 16:06:18.941", "2019-06-19 16:10:18.141", "S2", "5") self.r2 = Record("1", "S2", "1", "2019-06-19 16:17:24.550", "2019-06-19 16:29:10.882", "S1", "2") self.r3 = Record("3", "S1", "2", "2019-06-19 16:31:24.550", "2019-06-19 16:33:10.882", "S2", "1")