text: """
  A dummy queue that uses Python's built-in Queue class.
  
  Useful for testing but likely not much else.
  """
  import Queue as queue
  from queues import QueueException
  from queues.backends.base import BaseQueue
  
  queues = {}
  
  def get_queue(name):
      if name not in queues:
          queues[name] = queue.Queue()
      return queues[name]
  
  class Queue(BaseQueue):
      def __init__(self, name='default'):
          self.queue = get_queue(name)
          self.backend = 'dummy'
          self.name = name
  
      def read(self, block=False, timeout=None):
          try:
              message = self.queue.get(block=block, timeout=timeout)
              self.queue.task_done()
              return message
          except queue.Empty, e:
              raise QueueException("The queue is empty.")
  
      def write(self, message):
          try:
              return self.queue.put(message)
          except queue.Full, e:
              raise QueueException("The queue is full.")
  
      def __len__(self):
          return self.queue.qsize()
  
      def __repr__(self):
          return "<Queue %s>" % self.name
  
  
  def create_queue():
      """This isn't required, so we noop.  Kept here for swapability."""
      return True
  
  
  def delete_queue(name):
      """Just start afresh."""
      try:
          del queues[name]
      except KeyError:
          pass
  
  
  def get_list():
      """No way to do this."""
      raise NotImplementedError
  