示例#1
0
def test_bad_status_line2():
    err = aiohttp.BadStatusLine('Test')
    assert str(err) == 'Test'
示例#2
0
def test_bad_status_line1():
    err = aiohttp.BadStatusLine(b'')
    assert str(err) == "b''"
示例#3
0
    def test_bad_status_line(self):
        err = aiohttp.BadStatusLine(b'')
        self.assertEqual(str(err), "b''")

        err = aiohttp.BadStatusLine('Test')
        self.assertEqual(str(err), 'Test')