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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/d/j/django-paranoia-HEAD/django_paranoia/tests/test.py   django-paranoia(Download)
import mock
from nose.tools import eq_, ok_
from django_paranoia.configure import config
from django_paranoia.decorators import require_http_methods
from django_paranoia.forms import ParanoidForm, ParanoidModelForm
    def test_setup_fails(self, warning):
        config([self.log, 'foo'])
        eq_(len(warning.connect.call_args_list), 1)
        eq_(warning.connect.call_args[1]['dispatch_uid'],
            'paranoia.warning')