from django.core.urlresolvers import reverse
from django.test import TestCase, Client


class ProxyTests(TestCase):

    def test_add_tenant(self):

        client = Client()

        url = reverse()
        response = client.get('/4caast-enabling/add_tenant?4caastID=', HTTP_HOST='localhost', HTTP_REFERER='http://localhost')
        self.assertEqual(response.status_code, 200)

        #Check user exists
        User.object.filter(username='').exists()

    def test_remove_tenant(self):

        client = Client()

        response = client.get('/4caast-enabling/remove_tenant?4caastID=', HTTP_HOST='localhost', HTTP_REFERER='http://localhost')
        self.assertEqual(response.status_code, 200)


    def test_ac_deployment(self):

        client = Client()

        # Mashups/Widgets/Operators ...
        response = client.get('/4caast-enabling/remove_tenant?4caastID=', HTTP_HOST='localhost', HTTP_REFERER='http://localhost')
        self.assertEqual(response.status_code, 200)

    # moritoring probe
    # accounting probe (proxy

    def test_saas_enabling(self):

        client = Client()
        response = client.get('/4caast-enabling/remove_tenant?4caastID=', HTTP_HOST='localhost', HTTP_REFERER='http://localhost')
        self.assertEqual(response.status_code, 200)

    def test_saas_disabling(self):

        client = Client()
        response = client.get('/4caast-enabling/remove_tenant?4caastID=', HTTP_HOST='localhost', HTTP_REFERER='http://localhost')
        self.assertEqual(response.status_code, 200)

@@ -79,17 +79,79 @@
  Client%0A
-%0A
+from django.utils import unittest%0A%0A%0A@unittest.skip('wip tests')
 %0Aclass P

Disable 4caast tests