Searched refs:_class (Results 1 – 2 of 2) sorted by relevance
156 def _class(self): member in CoapCode164 def from_class_and_detail(cls, _class, detail): argument165 return cls(((_class & 0x7) << 5) | (detail & 0x1F))169 _class, detail = dotted_str.split(".")170 return cls.from_class_and_detail(int(_class), int(detail))178 return ".".join(["{:01d}".format(self._class), "{:02d}".format(self.detail)])
246 actual_class = code_obj._class273 _class, detail = actual_dotted.split(".")274 self.assertEqual(code, (int(_class) << 5) | int(detail))280 _class = (code >> 5) & 0x7284 actual_coap_obj = coap.CoapCode.from_class_and_detail(_class, detail)