@@ -0,0 +1,665 @@
+import os%0Aimport ConfigParser%0Aimport sys%0Afrom hypchat import *%0A%0AAUTH_TOKEN = None%0AENDPOINT = None%0Aconfig = ConfigParser.ConfigParser()%0Aconfig.read(%5Bos.path.expanduser('~/.hypchat'), '/etc/hypchat'%5D)%0Aif config.has_section('HipChat'):%0A    AUTH_TOKEN = config.get('HipChat', 'token')%0A    ENDPOINT = config.get('HipChat', 'endpoint')%0A%0Aif 'HIPCHAT_TOKEN' in os.environ:%0A    AUTH_TOKEN = os.environ%5B'HIPCHAT_TOKEN'%5D%0A%0Aif 'HIPCHAT_ENDPOINT' in os.environ:%0A    ENDPOINT = os.environ%5B'HIPCHAT_ENDPOINT'%5D%0A%0Aif ENDPOINT:%0A    hipchat = HypChat(AUTH_TOKEN, ENDPOINT)%0Aelse:%0A    hipchat = HypChat(AUTH_TOKEN)%0A%0Aimport datetime%0A%0Aroom = hipchat.rooms()%5B'items'%5D%5B0%5D%0Aprint(room%5B'name'%5D)%0A

add test