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

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

        rt = ReqNote(config)
        name, value = rt.rewrite("Note-test", req)
        assert "Note" == name
        assert value is None
Esempio n. 3
0
    def test_positive_01(self):
        "Requirement Tag Note - no tag given"
        config, req = create_parameters()

        rt = ReqNote(config)
        name, value = rt.rewrite("Note-test", req)
        assert(name == "Note")
        assert(value == None)
Esempio n. 4
0
    def rmttest_positive_02(self):
        "Requirement Tag Note - Note set"
        config, req = create_parameters()
        req = {"Note": "something"}

        rt = ReqNote(config)
        name, value = rt.rewrite("Note-test", req)
        self.assertEqual("Note", name)
        self.assertEqual("something", value)
Esempio n. 5
0
    def test_positive_02(self):
        "Requirement Tag Note - Note set"
        config, req = create_parameters()
        req = {"Note": "something"}

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