def testTextNotIn(self):
        obj = ConsoleDiffer(name='diff', text_not_in='andrew')
        obj.execute(0, 'bob', 'julie')
        self.assertEqual(obj.status(), 0)

        with self.assertLogs(level='ERROR') as log:
            obj.execute(0, 'andrew', '')
        self.assertEqual(len(log.output), 1)
        self.assertIn(
            "The content of 'text_not_in' parameter, 'andrew', was located in the output",
            log.output[0])
        self.assertEqual(obj.status(), 1)

        obj.reset()
        with self.assertLogs(level='ERROR') as log:
            obj.execute(0, '', 'andrew')
        self.assertEqual(len(log.output), 1)
        self.assertIn(
            "The content of 'text_not_in' parameter, 'andrew', was located in the output",
            log.output[0])
        self.assertEqual(obj.status(), 1)
    def testReNotMatch(self):
        obj = ConsoleDiffer(name='diff', re_not_match='\d{4}-\d{2}-\d{2}')
        obj.execute(0, '198-06-24', '198-06-24')
        self.assertEqual(obj.status(), 0)

        obj.execute(0, '198-06-24', '198-06-24')
        self.assertEqual(obj.status(), 0)

        with self.assertLogs(level='ERROR') as log:
            obj.execute(0, '1980-06-24', '')
        self.assertEqual(len(log.output), 1)
        self.assertIn(
            "The regular expression of 're_not_match' parameter, '\\d{4}-\\d{2}-\\d{2}', did produce a match in the output of sys.stdout or sys.stderr:\n1980-06-24\n",
            log.output[0])
        self.assertEqual(obj.status(), 1)

        obj.reset()
        with self.assertLogs(level='ERROR') as log:
            obj.execute(0, '', '1980-06-24')
        self.assertEqual(len(log.output), 1)
        self.assertIn(
            "The regular expression of 're_not_match' parameter, '\\d{4}-\\d{2}-\\d{2}', did produce a match in the output of sys.stdout or sys.stderr:\n\n1980-06-24",
            log.output[0])
        self.assertEqual(obj.status(), 1)