

def test_queue_is_empty_after_purge(self):
    conn = create_connection('database')
    q = conn.Queue('test_queue')
    q.put(serialize({
        'name': 'George Constanza',
    }))
    q.put(serialize({
        'name': 'George Constanza',
    }))
    q.purge()
    conn.assertRaises(Empty, q.get)

dataset/ETHPy150Open ask/ghettoq/ghettoq/tests/test_database.py TestDatabaseBackend.test_queue_is_empty_after_purge/VarMisuse@66/97 `self`->`conn`