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)
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)
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")
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())
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()
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)
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)