示例#1
0
    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())
示例#2
0
 def __init__(self, uuid=None, linerange=None, **kwargs):
     self.uuid = uuid if uuid else UUID_TICKETS.get()
     self.linerange = linerange
示例#3
0
 def __init__(self, uuid=None, linerange=None, **kwargs):
     self.uuid = uuid if uuid else UUID_TICKETS.get()
     self.linerange = linerange