def test_get(self): self.assertEqual("00000", UUID_TICKETS.get()) self.assertEqual("label_00000", LABEL_TICKETS.get()) self.assertEqual("ireg_00000", INT_REGISTER_TICKETS.get()) self.assertEqual("freg_00000", FLOAT_REGISTER_TICKETS.get()) self.assertEqual("00001", UUID_TICKETS.get()) self.assertEqual("label_00001", LABEL_TICKETS.get()) self.assertEqual("ireg_00001", INT_REGISTER_TICKETS.get()) self.assertEqual("freg_00001", FLOAT_REGISTER_TICKETS.get())
def __init__(self, uuid=None, linerange=None, **kwargs): self.uuid = uuid if uuid else UUID_TICKETS.get() self.linerange = linerange