Ejemplo n.º 1
0
    def test_positive_01(self):
        "Requirement Tag Rationale - no tag given"
        config, req = create_parameters()

        rt = ReqRationale(config)
        name, value = rt.rewrite("Rationale-test", req)
        assert (name == "Rationale")
        assert (value == None)
Ejemplo n.º 2
0
    def test_positive_01(self):
        "Requirement Tag Rationale - no tag given"
        config, req = create_parameters()

        rt = ReqRationale(config)
        name, value = rt.rewrite("Rationale-test", req)
        assert(name == "Rationale")
        assert(value == None)
Ejemplo n.º 3
0
    def rmttest_positive_01(self):
        "Requirement Tag Rationale - no tag given"
        config, req = create_parameters()

        rt = ReqRationale(config)
        name, value = rt.rewrite("Rationale-test", req)
        assert "Rationale" == name
        assert value is None
Ejemplo n.º 4
0
    def rmttest_positive_01(self):
        "Requirement Tag Rationale - no tag given"
        config, req = create_parameters()

        rt = ReqRationale(config)
        name, value = rt.rewrite("Rationale-test", req)
        self.assertEqual("Rationale", name)
        self.assertIsNone(value)
    def rmttest_positive_01(self):
        "Requirement Tag Rationale - no tag given"
        config, req = create_parameters()

        rt = ReqRationale(config)
        name, value = rt.rewrite("Rationale-test", req)
        assert "Rationale" == name
        assert value is None
Ejemplo n.º 6
0
    def test_positive_02(self):
        "Requirement Tag Rationale - Rationale set"
        config, req = create_parameters()
        req = {"Rationale": RecordEntry("Rationale", "something")}

        rt = ReqRationale(config)
        name, value = rt.rewrite("Rationale-test", req)
        assert (name == "Rationale")
        assert (value.get_content() == "something")
Ejemplo n.º 7
0
    def test_positive_02(self):
        "Requirement Tag Rationale - Rationale set"
        config, req = create_parameters()
        req = {"Rationale": RecordEntry("Rationale", "something")}

        rt = ReqRationale(config)
        name, value = rt.rewrite("Rationale-test", req)
        assert(name == "Rationale")
        assert(value.get_content() == "something")