Exemplo n.º 1
0
async def test_padding(hass):
    """Verify that non padding strings are allowed."""
    assert data_packet("Jg") == b"&"
    assert data_packet("Jg=") == b"&"
    assert data_packet("Jg==") == b"&"
Exemplo n.º 2
0
async def test_padding(hass):
    """Verify that non padding strings are allowed."""
    assert data_packet('Jg') == b'&'
    assert data_packet('Jg=') == b'&'
    assert data_packet('Jg==') == b'&'