Ejemplo n.º 1
0
def test_content_length_not_specified():
    ''' By default content length should be -1 '''
    environ = {}
    assert wsgi.content_length(environ) == -1
Ejemplo n.º 2
0
def test_content_length_not_specified():
    ''' By default content length should be -1 '''
    environ = {}
    assert wsgi.content_length(environ) == -1
Ejemplo n.º 3
0
def test_content_length_returns_int():
    ''' CONTENT_LENGTH is converted to an int '''
    environ = {"CONTENT_LENGTH": "5"}
    assert wsgi.content_length(environ) == 5
Ejemplo n.º 4
0
def test_content_length_returns_int():
    ''' CONTENT_LENGTH is converted to an int '''
    environ = {"CONTENT_LENGTH": "5"}
    assert wsgi.content_length(environ) == 5