Exemplo n.º 1
0
def test_fourchan_unknown_list_3():
    with pytest.raises(Exception):
        thread = pychan.FourChan("['zxc', 'qwe']")
Exemplo n.º 2
0
def test_fourchan_parse_fuuka_thread():
    with pytest.raises(Exception):
        thread = pychan.FourChan("tests/desu_thread.json")
Exemplo n.º 3
0
def test_fourchan_unknown_list_2():
    with pytest.raises(Exception):
        thread = pychan.FourChan("[1,2,34,5]")
Exemplo n.º 4
0
def test_fourchan_empty_list():
    with pytest.raises(Exception):
        thread = pychan.FourChan("[]")
Exemplo n.º 5
0
def test_fourchan_unknown_string():
    with pytest.raises(Exception):
        thread = pychan.FourChan("""n78yo342v>{?>L}?~!@#+_)|}{\\|""")
Exemplo n.º 6
0
def test_fourchan_unknown_dict():
    with pytest.raises(Exception):
        thread = pychan.FourChan("""{ "zxc": "qwe", "cvz": 123 }""")
Exemplo n.º 7
0
def test_fourchan_empty_dict():
    with pytest.raises(Exception):
        thread = pychan.FourChan("{}")