Exemple #1
0
    def test_build_srpm_from_spec(self):
        specdep.build_srpm_from_spec(self.spec)

        self.assertEqual(sys.stdout.getvalue(),
            "./SRPMS/ocaml-cohttp-0.9.8-1.el6.src.rpm: "
                "./SPECS/ocaml-cohttp.spec "
                "./SOURCES/ocaml-cohttp-0.9.8.tar.gz\n")
Exemple #2
0
    def test_build_srpm_from_spec(self):
        specdep.build_srpm_from_spec(self.spec)

        self.assertEqual(
            sys.stdout.getvalue(), "./SRPMS/ocaml-cohttp-0.9.8-1.el6.src.rpm: "
            "./SPECS/ocaml-cohttp.spec "
            "./SOURCES/ocaml-cohttp-0.9.8.tar.gz\n")
    def test_build_srpm_from_spec(self):
        specdep.build_srpm_from_spec(self.spec, "ocaml-cohttp.spec")

        assert sys.stdout.getvalue() == \
"""./SRPMS/ocaml-cohttp-0.9.8-1.src.rpm: ./SPECS/ocaml-cohttp.spec ./SOURCES/ocaml-cohttp-0.9.8.tar.gz
    def test_build_srpm_from_spec(self):
        specdep.build_srpm_from_spec(self.spec)

        assert sys.stdout.getvalue() == \
"""./SRPMS/ocaml-cohttp-0.9.8-1.el6.src.rpm: ./SPECS/ocaml-cohttp.spec ./SOURCES/ocaml-cohttp-0.9.8.tar.gz