# Path: tsuru_autoscale/alarm/forms.py
# class AlarmForm(forms.Form):
#     name = forms.CharField()
#     expression = forms.CharField()
#     enabled = forms.BooleanField(initial=True)
#     wait = forms.IntegerField()
#     datasource = forms.ChoiceField()
#     actions = forms.MultipleChoiceField()
#     instance = forms.ChoiceField()
# 
# Path: tsuru_autoscale/alarm/client.py
# def host():
# def new(data, token):
# def list(token):
# def remove(name, token):
# def get(name, token):
# def service_instance_list(token):


from django.test import TestCase
from django.core.urlresolvers import reverse
from tsuru_autoscale.alarm.forms import AlarmForm
from tsuru_autoscale.alarm import client
import httpretty
import mock
import os





class RemoveTestCase(TestCase):
    @mock.patch("tsuru_autoscale.alarm.client.list")
    @mock.patch("tsuru_autoscale.alarm.client.remove")
    def test_remove(self, remove_mock, list_mock):
        url = "{}?TSURU_TOKEN=bla".format(reverse("alarm-remove", args=["name"]))

# Path: tsuru_autoscale/alarm/forms.py
# class AlarmForm(forms.Form):
#     name = forms.CharField()
#     expression = forms.CharField()
#     enabled = forms.BooleanField(initial=True)
#     wait = forms.IntegerField()
#     datasource = forms.ChoiceField()
#     actions = forms.MultipleChoiceField()
#     instance = forms.ChoiceField()
# 
# Path: tsuru_autoscale/alarm/client.py
# def host():
# def new(data, token):
# def list(token):
# def remove(name, token):
# def get(name, token):
# def service_instance_list(token):


# Path: tsuru_autoscale/alarm/tests.py
from django.test import TestCase
from django.core.urlresolvers import reverse
from tsuru_autoscale.alarm.forms import AlarmForm
from tsuru_autoscale.alarm import client
import httpretty
import mock
import os






class RemoveTestCase(TestCase):
    @mock.patch("tsuru_autoscale.alarm.client.list")
    @mock.patch("tsuru_autoscale.alarm.client.remove")
    def test_remove(self, remove_mock, list_mock):
        url = "{}?TSURU_TOKEN=bla".format(reverse("alarm-remove", args=["name"]))

        response = self.client.delete(url)