Exemplo n.º 1
0
def test_request_assert_data_jsonifies_dictionary():
    from json import dumps
    data = dict(invoice_id=1337, customer="Ala")
    expected = dumps(data)
    assert Request.assert_data(data) == expected
Exemplo n.º 2
0
def test_request_assert_data_leaves_string_unchanged():
    expected = "json string will not be changed"
    assert Request.assert_data(expected) is expected