Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
aiohttp / tests / test_errors.py
Size: Mime:
"""Tests for errors.py"""

import unittest
import unittest.mock

import aiohttp


class TestErrors(unittest.TestCase):

    def test_bad_status_line(self):
        err = aiohttp.BadStatusLine(b'')
        self.assertEqual(str(err), "b''")

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