from slumber.connector.ua import get

from django.test import TestCase

from pubsubpull.models import *


class TestConfiguration(TestCase):
    def test_slumber(self):
        response, json  = get('/slumber/')
        self.assertEquals(response.status_code, 200, response)

from slumber.connector.ua import get

from django.test import TestCase

from pubsubpull.models import *


class TestConfiguration(TestCase):
    def test_slumber(self):
        response, json  = get('/slumber/')
        self.assertEquals(response.status_code, 200, response)
        self.assertTrue(json.has_key('apps'), json)
        self.assertTrue(json['apps'].has_key('pubsubpull'), json)

Make sure pubsubpull is installed.
Make sure pubsubpull is installed.

  from slumber.connector.ua import get
  
  from django.test import TestCase
  
  from pubsubpull.models import *
  
  
  class TestConfiguration(TestCase):
      def test_slumber(self):
          response, json  = get('/slumber/')
          self.assertEquals(response.status_code, 200, response)
+         self.assertTrue(json.has_key('apps'), json)
+         self.assertTrue(json['apps'].has_key('pubsubpull'), json)
  
Make sure pubsubpull is installed.
## Code Before:
from slumber.connector.ua import get

from django.test import TestCase

from pubsubpull.models import *


class TestConfiguration(TestCase):
    def test_slumber(self):
        response, json  = get('/slumber/')
        self.assertEquals(response.status_code, 200, response)

## Instruction:
Make sure pubsubpull is installed.
## Code After:
from slumber.connector.ua import get

from django.test import TestCase

from pubsubpull.models import *


class TestConfiguration(TestCase):
    def test_slumber(self):
        response, json  = get('/slumber/')
        self.assertEquals(response.status_code, 200, response)
        self.assertTrue(json.has_key('apps'), json)
        self.assertTrue(json['apps'].has_key('pubsubpull'), json)
