Example #1
0
    def rmttest_negative_01(self):
        "Requirement Tag Topic - no Topic set"
        config, req = create_parameters()

        rt = ReqTopic(config)
        with self.assertRaises(RMTException) as rmte:
            rt.rewrite("Topic-test", req)
            self.assertEqual(9, rmte.id())
Example #2
0
    def rmttest_positive_01(self):
        "Requirement Tag Topic - tag given"
        config, req = create_parameters()
        req["Topic"] = RecordEntry("Topic", "This is something")

        rt = ReqTopic(config)
        name, value = rt.rewrite("Topic-test", req)
        self.assertEqual("Topic", name)
        self.assertEqual("This is something", value)
Example #3
0
    def test_negative_01(self):
        "Requirement Tag Topic - no Topic set"
        config, req = create_parameters()

        rt = ReqTopic(config)
        try:
            name, value = rt.rewrite("Topic-test", req)
            assert (False)
        except RMTException, rmte:
            assert (rmte.id() == 9)