':py:obj:`Context.use_certificate_chain_file` raises :py:obj:`TypeError`
if passed zero or more than one argument or when passed a non-byte
string single argument.  It also raises :py:obj:`OpenSSL.SSL.Error` when
passed a bad chain file name (for example, the name of a file which does
not exist).'

def test_use_certificate_chain_file_wrong_args(self):

    context = Context(TLSv1_METHOD)
    self.assertRaises(TypeError, context.use_certificate_chain_file)
    self.assertRaises(TypeError, context.use_certificate_chain_file, object())
    self.assertRaises(TypeError, context.use_certificate_chain_file, 'foo', object())
    self.assertRaises(Error, context.use_certificate_chain_file, self.mktemp())
