def __init__(self):
     tc = TestConfig()
     tc.set_value('input.txtfile.whatsoever.max_line_length', 80)
     tm = TMods()
     tm.tagtypes = {"mytag": {"keyA": TMods()}}
     BaseRMObject.__init__(self, u"mytag", u"", u"MRid", tm, tc, u"tobjs",
                           None)
Example #2
0
 def __init__(self):
     tc = TestConfig()
     tc.set_value('input.txtfile.whatsoever.max_line_length', 80)
     tm = TMods()
     tm.tagtypes = {"mytag": {"keyA": TMods()}}
     BaseRMObject.__init__(self, "mytag", "", "MRid", tm,
                           tc, "tobjs", None)
Example #3
0
 def __init__(self):
     sfd = StringIO.StringIO()
     tc = TestConfig()
     tc.set_value('input.txtfile.whatsoever.max_line_length', 80)
     tm = TMods()
     tm.tagtypes = {"mytag": {"keyA": TMods()}}
     self.mls = MemLogStore()
     BaseRMObject.__init__(self, "mytag", sfd, "MRid", self.mls, tm,
                           tc, "tobjs")
Example #4
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())
Example #5
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 pytest.raises(RMTException) as rmte:
            Topic(dg, tconfig, tvcs, None, tfileinfo, None)
            assert 62 == rmte.get_id()
Example #6
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)
Example #7
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)