# Path: tsuru_autoscale/instance/client.py
# def host():
# def list(token):
# def get(name, token):
# def alarms_by_instance(instance, token):


from django.test import TestCase
from django.core.urlresolvers import reverse
from django.conf import settings
from tsuru_autoscale.instance import client
from importlib import import_module
import httpretty
import mock
import os






class ListTestCase(TestCase):
    def setUp(self):
        settings.SESSION_ENGINE = 'django.contrib.sessions.backends.file'
        engine = import_module(settings.SESSION_ENGINE)
        store = engine.SessionStore()
        store.save()
        self.session = store

# Path: tsuru_autoscale/instance/client.py
# def host():
# def list(token):
# def get(name, token):
# def alarms_by_instance(instance, token):


# Path: tsuru_autoscale/instance/tests.py
from django.test import TestCase
from django.core.urlresolvers import reverse
from django.conf import settings
from tsuru_autoscale.instance import client
from importlib import import_module
import httpretty
import mock
import os







class ListTestCase(TestCase):
    def setUp(self):
        settings.SESSION_ENGINE = 'django.contrib.sessions.backends.file'
        engine = import_module(settings.SESSION_ENGINE)
        store = engine.SessionStore()
        store.save()
        self.session = store

        self.client.cookies[settings.SESSION_COOKIE_NAME] = store.session_key