def test_pci_formatter(self):
        for string, expected in self.data:
            formatter = PciFormatter()
            record = LogRecord(
                name=None, level=None, pathname='', lineno=0,
                msg=string, args=None, exc_info=None)
            self.assertEqual(formatter.format(record), expected)
Test an user with blocked username cannot login using
dataset/ETHPy150Open django-oscar/django-oscar/tests/unit/logging_tests.py/TestLogging.test_pci_formatter--crossover with--dataset/ETHPy150Open kencochrane/django-defender/defender/tests.py/AccessAttemptTest.test_blocked_username_cannot_login