Ejemplo n.º 1
0
 def test_frame_outbound(self) -> None:
     ext = wpext.Extension()
     rsv = fp.RsvBits(True, True, True)
     data = b""
     assert ext.frame_outbound(None, None, rsv, data, None) == (  # type: ignore
         rsv,
         data,
     )
Ejemplo n.º 2
0
 def test_offer(self):
     ext = wpext.Extension()
     assert ext.offer() is None
Ejemplo n.º 3
0
 def test_enabled(self):
     ext = wpext.Extension()
     assert not ext.enabled()
Ejemplo n.º 4
0
 def test_frame_outbound(self):
     ext = wpext.Extension()
     rsv = fp.RsvBits(True, True, True)
     data = object()
     assert ext.frame_outbound(None, None, rsv, data, None) == (rsv, data)
Ejemplo n.º 5
0
 def test_frame_inbound_complete(self):
     ext = wpext.Extension()
     assert ext.frame_inbound_complete(None, None) is None
Ejemplo n.º 6
0
 def test_frame_inbound_payload_data(self):
     ext = wpext.Extension()
     data = object()
     assert ext.frame_inbound_payload_data(None, data) == data
Ejemplo n.º 7
0
 def test_frame_inbound_header(self):
     ext = wpext.Extension()
     result = ext.frame_inbound_header(None, None, None, None)
     assert result == fp.RsvBits(False, False, False)
Ejemplo n.º 8
0
 def test_finalize(self):
     ext = wpext.Extension()
     assert ext.finalize(None) is None
Ejemplo n.º 9
0
 def test_accept(self):
     ext = wpext.Extension()
     assert ext.accept(None) is None
Ejemplo n.º 10
0
 def test_frame_inbound_complete(self) -> None:
     ext = wpext.Extension()
     assert ext.frame_inbound_complete(None, None) is None  # type: ignore
Ejemplo n.º 11
0
 def test_frame_inbound_payload_data(self) -> None:
     ext = wpext.Extension()
     data = b""
     assert ext.frame_inbound_payload_data(None, data) == data  # type: ignore
Ejemplo n.º 12
0
 def test_finalize(self) -> None:
     ext = wpext.Extension()
     offer = "myext"
     ext.finalize(offer)
Ejemplo n.º 13
0
 def test_accept(self) -> None:
     ext = wpext.Extension()
     offer = "myext"
     assert ext.accept(offer) is None
Ejemplo n.º 14
0
 def test_finalize(self):
     ext = wpext.Extension()
     ext.finalize(None)
Ejemplo n.º 15
0
 def test_frame_inbound_header(self) -> None:
     ext = wpext.Extension()
     result = ext.frame_inbound_header(None, None, None,
                                       None)  # type: ignore[arg-type]
     assert result == fp.RsvBits(False, False, False)