Gitiles
Code Review
Sign In
gerrit.nordix.org
/
onap
/
integration
/
csit
/
8bf49988b7d6af5fdb48b5d2c1f830fbe318e83a
/
.
/
tests
/
optf-cmso
/
cmso
/
attlibs
/
CurlLibrary.py
blob: 44c62293ef96b59b04e85df2dce61854be3d7646 [
file
] [
log
] [
blame
]
from
curl
import
Curl
class
CurlLibrary
:
def
get_zip
(
self
,
url
,
filename
):
fp
=
open
(
filename
,
"wb"
)
c
=
Curl
()
c
.
get
(
url
,
)
c
.
set_option
(
c
.
WRITEDATA
,
fp
)
c
.
perform
()
c
.
close
()
fp
.
close
()