Exemplo n.º 1
0
    def rmttest_neg_01(self):
        "Topic: (internal) check if Name tag exists"
        dg = Digraph()

        tconfig = TestConfig()
        tconfig.set_value("topic_root_node", "/nothing/compare")
        tvcs = TestVCS(tconfig)
        tfileinfo = TestVCS.FileInfo(1)

        with self.assertRaises(RMTException) as rmte:
            Topic(dg, tconfig, tvcs, None, tfileinfo, None)
            self.assertEqual(62, rmte.get_id())
Exemplo n.º 2
0
    def test_neg_01(self):
        "Topic: (internal) check if Name tag exists"
        dg = Digraph()

        tconfig = TestConfig()
        tconfig.set_value("topic_root_node", "/nothing/compare")
        tvcs = TestVCS(tconfig)
        tfileinfo = TestVCS.FileInfo(1)

        try:
            topic = Topic(dg, tconfig, tvcs, None, tfileinfo, None)
            assert (False)
        except RMTException, rmte:
            assert (rmte.id() == 62)