コード例 #1
0
def test_encode_image():
    """Test that binary data is encoded correctly."""
    assert fb.encode_image(b"test") == "dGVzdA=="
コード例 #2
0
def test_encode_image():
    """Test that binary data is encoded correctly."""
    assert fb.encode_image(b'test') == 'dGVzdA=='