def test_Methodheap_MythXML_002_08(self): """Test MythXML.getExpiring() with logging.""" a = False with add_log_flags(): m_instance = MythXML() rec_list = m_instance.getExpiring() rec = next(rec_list) self.assertTrue(len(rec.title) > 0) a = (len(tailandgrep('/tmp/my_logfile', 3, r'GetExpiringList')) > 0) self.assertTrue(a)
def test_Methodheap_MythXML_001_08(self): """Test MythXML.getExpiring().""" m_instance = MythXML() rec_list = m_instance.getExpiring() rec = next(rec_list) self.assertTrue(len(rec.title) > 0)