def test_Methodheap_MythXML_001_06(self):
     """Test MythXML.getChannelIcon()
     """
     m_instance = MythXML()
     icon = m_instance.getChannelIcon(self.testenv['RECCHANID'])
     with open('/tmp/icon', 'wb') as f:
         f.write(icon)
     os.system('file /tmp/icon > /tmp/my_logfile')
     a = (len(tailandgrep('/tmp/my_logfile', 2, 'JPEG|PNG')) > 0)
     self.assertTrue(a)
 def test_Methodheap_MythXML_002_06(self):
     """Test MythXML.getChannelIcon() with logging."""
     a = False
     b = False
     with add_log_flags():
         m_instance = MythXML()
         icon = m_instance.getChannelIcon(self.testenv['RECCHANID'])
         with open('/tmp/icon', 'wb') as f:
             f.write(icon)
         os.system('file /tmp/icon >> /tmp/my_logfile')
         a = (len(tailandgrep('/tmp/my_logfile', 2, 'JPEG|PNG')) > 0)
         self.assertTrue(a)
         b = (len(tailandgrep('/tmp/my_logfile', 3, r'GetChannelIcon')) > 0)
     self.assertTrue(b)