# Path: common/protocol/xmpp.py
# class JID(object):
# class XmppMessage(object):
# class XmppConnection(base.Connection):
#   def __init__(self, node, host, resource=None):
#   def from_uri(cls, uri):
#   def base(self):
#   def full(self):
#   def __init__(self, sender, target, message):
#   def from_request(cls, request):
#   def send_message(self, to_jid_list, message, html_message=None, 
#                    atom_message=None):
# 
# Path: common/test/util.py
# def get_url(s):
# def get_relative_url(s):
# def exhaust_queue(nick):
# def exhaust_queue_any():
#   def send_message(self, to_jid_list, message, html_message=None, 
#                    atom_message=None):
#   def send_message(self, to_list, message):
#   def __init__(self, **kw):
#   def REQUEST(self):
#   def __init__(self, *args, **kw):
#   def _get_valid(self, key):
#   def set(self, key, value, time=0):
#   def set_multi(self, mapping, time=0, key_prefix=''):
#   def add(self, key, value, time=0):
#   def add_multi(self, mapping, time=0, key_prefix=''):
#   def incr(self, key, delta=1):
#   def decr(self, key, delta=1):
#   def delete(self, key, seconds=0):
#   def delete_multi(self, keys, key_prefix=''):
#   def get(self, key):
#   def get_multi(self, keys, key_prefix=''):
#   def __init__(self, module, **kw):
#   def override(self):
#   def reset(self):
# def override_clock(module, **kw):
#   def __init__(self, **kw):
#   def override(self):
#   def reset(self):
# def override(**kw):
# class TestXmppConnection(xmpp.XmppConnection):
# class TestSmsConnection(sms.SmsConnection):
# class FakeRequest(object):
# class FakeMemcache(object):
# class ClockOverride(object):
# class SettingsOverride(object):


import urlparse
import sys
  import xml.etree.ElementTree as etree
  import xml.parsers.expat
from beautifulsoup import BeautifulSoup
from django import http
from django import test
from django.conf import settings
from django.test import client
from common import clean
from common import memcache
from common import profile
from common import util
from common.protocol import sms
from common.protocol import xmpp
from common.test import util as test_util
               'hotness@example.com': 'fakepassword'};
  
  def setUp(self):
    settings.DEBUG = False

    xmpp.XmppConnection = test_util.TestXmppConnection
    xmpp.outbox = []

    sms.SmsConnection = test_util.TestSmsConnection
    sms.outbox = []

    memcache.client = test_util.FakeMemcache()

    if profile.PROFILE_ALL_TESTS:
      profile.start()

    self.client = client.Client(SERVER_NAME=settings.DOMAIN)

  def tearDown(self):
    if profile.PROFILE_ALL_TESTS:
      profile.stop()

    if hasattr(self, 'override'):
      self.override.reset()
      del self.override

  def exhaust_queue(self, nick):
    test_util.exhaust_queue(nick)

  def exhaust_queue_any(self):

# Path: common/protocol/xmpp.py
# class JID(object):
# class XmppMessage(object):
# class XmppConnection(base.Connection):
#   def __init__(self, node, host, resource=None):
#   def from_uri(cls, uri):
#   def base(self):
#   def full(self):
#   def __init__(self, sender, target, message):
#   def from_request(cls, request):
#   def send_message(self, to_jid_list, message, html_message=None, 
#                    atom_message=None):
# 
# Path: common/test/util.py
# def get_url(s):
# def get_relative_url(s):
# def exhaust_queue(nick):
# def exhaust_queue_any():
#   def send_message(self, to_jid_list, message, html_message=None, 
#                    atom_message=None):
#   def send_message(self, to_list, message):
#   def __init__(self, **kw):
#   def REQUEST(self):
#   def __init__(self, *args, **kw):
#   def _get_valid(self, key):
#   def set(self, key, value, time=0):
#   def set_multi(self, mapping, time=0, key_prefix=''):
#   def add(self, key, value, time=0):
#   def add_multi(self, mapping, time=0, key_prefix=''):
#   def incr(self, key, delta=1):
#   def decr(self, key, delta=1):
#   def delete(self, key, seconds=0):
#   def delete_multi(self, keys, key_prefix=''):
#   def get(self, key):
#   def get_multi(self, keys, key_prefix=''):
#   def __init__(self, module, **kw):
#   def override(self):
#   def reset(self):
# def override_clock(module, **kw):
#   def __init__(self, **kw):
#   def override(self):
#   def reset(self):
# def override(**kw):
# class TestXmppConnection(xmpp.XmppConnection):
# class TestSmsConnection(sms.SmsConnection):
# class FakeRequest(object):
# class FakeMemcache(object):
# class ClockOverride(object):
# class SettingsOverride(object):


# Path: common/test/base.py
import urlparse
import sys
  import xml.etree.ElementTree as etree
  import xml.parsers.expat
from beautifulsoup import BeautifulSoup
from django import http
from django import test
from django.conf import settings
from django.test import client
from common import clean
from common import memcache
from common import profile
from common import util
from common.protocol import sms
from common.protocol import xmpp
from common.test import util as test_util

               'hotness@example.com': 'fakepassword'};
  
  def setUp(self):
    settings.DEBUG = False

    xmpp.XmppConnection = test_util.TestXmppConnection
    xmpp.outbox = []

    sms.SmsConnection = test_util.TestSmsConnection
    sms.outbox = []

    memcache.client = test_util.FakeMemcache()

    if profile.PROFILE_ALL_TESTS:
      profile.start()

    self.client = client.Client(SERVER_NAME=settings.DOMAIN)

  def tearDown(self):
    if profile.PROFILE_ALL_TESTS:
      profile.stop()

    if hasattr(self, 'override'):
      self.override.reset()
      del self.override

  def exhaust_queue(self, nick):
    test_util.exhaust_queue(nick)

  def exhaust_queue_any(self):

    test_util.exhaust_queue_any()