'If a non-202/204 status is returned, raise a URLError.'

def test_error_on_subscribe_raises_URLError(self):

    self.responses.append(MockResponse(500, 'error    data'))
    try:
        PushSubscription.objects.subscribe('topic', 'hub', 'callback')
    except urllib2.URLError as e:
        self.assertEquals(e.reason, 'error    subscribing    to    topic    on    hub:\nerror    data')
    else:
        self.fail('subscription    did    not    raise    URLError    exception')
