':py:obj:`Context.load_verify_locations` accepts a file name as a
``bytes`` instance and uses the certificates within for verification
purposes.'

def test_load_verify_bytes_cafile(self):

    cafile = (self.mktemp() + NON_ASCII.encode(getfilesystemencoding()))
    self._load_verify_cafile(cafile)
