':py:obj:`Context.use_certificate_file` sets the certificate (given as a
``bytes`` filename) which will be used to identify connections created
using the context.'

def test_use_certificate_file_bytes(self):

    filename = (self.mktemp() + NON_ASCII.encode(getfilesystemencoding()))
    self._use_certificate_file_test(filename)
