Repair unit tests.

This commit is contained in:
Aldo Cortesi 2012-02-27 20:34:47 +13:00
parent 764724748b
commit 688faa9baa
1 changed files with 2 additions and 3 deletions

View File

@ -147,14 +147,13 @@ class udummy_cert(libpry.AutoTree):
cacert = os.path.join(d, "foo/cert.cnf") cacert = os.path.join(d, "foo/cert.cnf")
assert utils.dummy_ca(cacert) assert utils.dummy_ca(cacert)
p = utils.dummy_cert( p = utils.dummy_cert(
#os.path.join(d, "foo"), os.path.join(d, "foo"),
"/tmp",
cacert, cacert,
"foo.com", "foo.com",
["one.com", "two.com", "*.three.com"] ["one.com", "two.com", "*.three.com"]
) )
assert os.path.exists(p) assert os.path.exists(p)
# Short-circuit # Short-circuit
assert utils.dummy_cert( assert utils.dummy_cert(
os.path.join(d, "foo"), os.path.join(d, "foo"),