def test_use_certificate_file_wrong_args(self):
    '\n        `Context.use_certificate_file` raises `TypeError` if the first\n        argument is not a byte string or the second argument is not an integer.\n        '
    ctx = Context(TLSv1_METHOD)
    with pytest.raises(TypeError):
        ctx.use_certificate_file(object(), FILETYPE_PEM)
    with pytest.raises(TypeError):
        ctx.use_certificate_file(b'somefile', object())
    with pytest.raises(TypeError):
        ctx.use_certificate_file(object(), FILETYPE_PEM)
`Context.use_certificate_file` raises `TypeError` if the first
argument is not a byte string or the second argument is not an integer.
def test_use_certificate_file_wrong_args(self):
    '\n        `Context.use_certificate_file` raises `TypeError` if the first\n        argument is not a byte string or the second argument is not an integer.\n        '
    ctx = Context(TLSv1_METHOD)
    with pytest.raises(TypeError):
        ctx.use_certificate_file(object(), FILETYPE_PEM)
    with pytest.raises(TypeError):
        ctx.use_certificate_file(b'somefile', object())
    with pytest.raises(TypeError):
        ctx.use_certificate_file(object(), FILETYPE_PEM)