Repair unit tests.
This commit is contained in:
parent
764724748b
commit
688faa9baa
test
|
@ -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"),
|
||||||
|
|
Loading…
Reference in New Issue