def test_download_rpm_sources(self): specdep.download_rpm_sources(self.spec) self.assertEqual(sys.stdout.getvalue(), "./SOURCES/ocaml-cohttp-0.9.8.tar.gz: ./SPECS/ocaml-cohttp.spec\n" " @echo [CURL] $@\n" " @curl --silent --show-error -L -o $@ https://github.com/" "mirage/ocaml-cohttp/archive/ocaml-cohttp-0.9.8/" "ocaml-cohttp-0.9.8.tar.gz\n")
def test_download_rpm_sources(self): specdep.download_rpm_sources(self.spec, "ocaml-cohttp.spec") assert sys.stdout.getvalue() == \ """./SOURCES/ocaml-cohttp-0.9.8.tar.gz: ./SPECS/ocaml-cohttp.spec
def test_download_rpm_sources(self): specdep.download_rpm_sources(self.spec) assert sys.stdout.getvalue() == \ """./SOURCES/ocaml-cohttp-0.9.8.tar.gz: ./SPECS/ocaml-cohttp.spec