示例#1
0
    def test_positive_14(self):
        "MemLogStore: Check to_list - with file and line"

        mls = MemLogStore()
        mls.info(77, "InfoMsg", "EFile", "ELine")
        l = mls.to_list()
        assert(mls == MemLogStore.create_mls(l))
示例#2
0
    def test_positive_05(self):
        "MemLogStore: Check error msg - only message - easy cmp"

        mls = MemLogStore()
        mls.error(77, "ErrMsg")

        print("1111 [%s]" % mls.to_list())
        print("2222 [%s]" % MemLogStore.create_mls(
                [ [77, LogLevel.error(), "ErrMsg"] ]).to_list())

        assert(mls == MemLogStore.create_mls(
                [ [77, LogLevel.error(), "ErrMsg"] ]))