Home
last modified time | relevance | path

Searched refs:_class (Results 1 – 2 of 2) sorted by relevance

/openthread-3.5.0/tests/scripts/thread-cert/
Dcoap.py156 def _class(self): member in CoapCode
164 def from_class_and_detail(cls, _class, detail): argument
165 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)])
Dtest_coap.py246 actual_class = code_obj._class
273 _class, detail = actual_dotted.split(".")
274 self.assertEqual(code, (int(_class) << 5) | int(detail))
280 _class = (code >> 5) & 0x7
284 actual_coap_obj = coap.CoapCode.from_class_and_detail(_class, detail)