def test_init(self, event_loop):
    'Test that creating an instance of Purge calls init of FoglampProcess and creates loggers'
    mockStorageClient = MagicMock(spec=StorageClient)
    mockAuditLogger = AuditLogger(mockStorageClient)
    with patch.object(FoglampProcess, '__init__') as mock_process:
        with patch.object(logger, 'setup') as log:
            with patch.object(mockAuditLogger, '__init__', return_value=None):
                p = Purge(loop=event_loop)
            assert isinstance(p, Purge)
            assert isinstance(p._audit, AuditLogger)
        log.assert_called_once_with('Data Purge')
    mock_process.assert_called_once_with()
Test that creating an instance of Purge calls init of FoglampProcess and creates loggers
def test_init(self, event_loop):
    
    mockStorageClient = MagicMock(spec=StorageClient)
    mockAuditLogger = AuditLogger(mockStorageClient)
    with patch.object(FoglampProcess, '__init__') as mock_process:
        with patch.object(logger, 'setup') as log:
            with patch.object(mockAuditLogger, '__init__', return_value=None):
                p = Purge(loop=event_loop)
            assert isinstance(p, Purge)
            assert isinstance(p._audit, AuditLogger)
        log.assert_called_once_with('Data Purge')
    mock_process.assert_called_once_with()