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

        rt = ReqHistory(config)
        name, value = rt.rewrite("History-test", req)
        self.assertEqual("History", name)
        self.assertIsNone(value)
Ejemplo n.º 2
0
    def test_positive_01(self):
        "Requirement Tag History - no tag given"
        config, req = create_parameters()

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

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

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

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

        rt = ReqHistory(config)
        name, value = rt.rewrite("History-test", req)
        assert(name == "History")
        assert(value == "something")
Ejemplo n.º 7
0
    def rmttest_positive_02(self):
        "Requirement Tag History - History set"
        config, req = create_parameters()
        req = {"History": "something"}

        rt = ReqHistory(config)
        name, value = rt.rewrite("History-test", req)
        self.assertEqual("History", name)
        self.assertEqual("something", value)
Ejemplo n.º 8
0
    def test_positive_02(self):
        "Requirement Tag History - History set"
        config, req = create_parameters()
        req = {"History": "something"}

        rt = ReqHistory(config)
        name, value = rt.rewrite("History-test", req)
        assert (name == "History")
        assert (value == "something")