Example #1
0
def test_content_length_not_specified():
    ''' By default content length should be -1 '''
    environ = {}
    assert wsgi.content_length(environ) == -1
Example #2
0
def test_content_length_not_specified():
    ''' By default content length should be -1 '''
    environ = {}
    assert wsgi.content_length(environ) == -1
Example #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
Example #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