Skip to content

Instantly share code, notes, and snippets.

View mariosanchezc's full-sized avatar

Mario Sanchez mariosanchezc

View GitHub Profile
@flavianmissi
flavianmissi / testing_django_signals.py
Created November 6, 2011 01:56
Testing Django signals
from unittest import TestCase
from my_app.signals import foo_bar
class SignalsTestCase(TestCase):
def dummy_listener(self, sender, **kwargs):
self.times += 1
def test_deve_chamar_o_signal_foo_bar(self):