Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(15)  |  Call(15)  |  Derive(0)  |  Import(0)

src/d/j/django-push-HEAD/tests/subscriber/tests.py   django-push(Download)
    def test_manager_unsubscribe(self, post):
        post.return_value = response(status_code=202)
        s = Subscription.objects.create(topic='http://example.com/feed',
                                        hub='http://hub.example.com')
        post.assert_not_called()
    def test_missing_callback_params(self):
        s = Subscription.objects.create(topic='foo', hub='bar')
        url = reverse('subscriber_callback', args=[s.pk])
        response = self.client.get(url)
        self.assertContains(
    def test_wrong_topic(self):
        s = Subscription.objects.create(topic='foo', hub='bar')
        url = reverse('subscriber_callback', args=[s.pk])
        response = self.client.get(url, {
            'hub.topic': 'baz',
    def test_wrong_mode(self):
        s = Subscription.objects.create(topic='foo', hub='bar')
        url = reverse('subscriber_callback', args=[s.pk])
        response = self.client.get(url, {
            'hub.topic': 'foo',
    def test_missing_lease_seconds(self):
        s = Subscription.objects.create(topic='foo', hub='bar')
        url = reverse('subscriber_callback', args=[s.pk])
        response = self.client.get(url, {
            'hub.topic': 'foo',

src/f/e/feedhq-HEAD/tests/test_fetching.py   feedhq(Download)
 
        u = UniqueFeed.objects.create(url='http://example.com')
        Subscription.objects.create(topic=u.url,
                                    hub='http://hub.example.com',
                                    verified=True,

src/b/a/batucada-HEAD/apps/links/tests.py   batucada(Download)
    def test_notification(self):
        sub = Subscription.objects.create(
            hub='http://blah/', topic='http://blah')
        Link.objects.create(
            name='foo',