@pytest.mark.parametrize('filetype', [object(), '', None, 1.0])
def test_wrong_privatekey_file_wrong_args(self, tmpfile, filetype):
    '\n        `Context.use_privatekey_file` raises `TypeError` when called with\n        a `filetype` which is not a valid file encoding.\n        '
    ctx = Context(TLSv1_METHOD)
    with pytest.raises(TypeError):
        ctx.use_privatekey_file(tmpfile, filetype)
`Context.use_privatekey_file` raises `TypeError` when called with
a `filetype` which is not a valid file encoding.
@pytest.mark.parametrize('filetype', [object(), , None, 1.0])
def test_wrong_privatekey_file_wrong_args(self, tmpfile, filetype):
    '\n        `Context.use_privatekey_file` raises `TypeError` when called with\n        a `filetype` which is not a valid file encoding.\n        '
    ctx = Context(TLSv1_METHOD)
    with pytest.raises(TypeError):
        ctx.use_privatekey_file(tmpfile, filetype)