예제 #1
0
def test_stringify_body_converts_dict_to_str():
    body = {'foo': 'bar', 'bar': 42}
    body_str = stringify_body(body)
    assert body == json.loads(body_str)
예제 #2
0
def test_stringify_body_converts_dict_to_str():
    body = {'foo': 'bar', 'bar': 42}
    body_str = stringify_body(body)
    assert body == json.loads(body_str)
예제 #3
0
def test_stringify_body_ignores_data_if_already_str():
    assert 'foo' == stringify_body('foo')
예제 #4
0
def test_stringify_body_ignores_data_if_already_str():
    assert 'foo' == stringify_body('foo')