Ticket #17688: 17688.diff

File 17688.diff, 620 bytes (added by Anssi Kääriäinen, 13 years ago)
  • tests/modeltests/m2m_signals/tests.py

    diff --git a/tests/modeltests/m2m_signals/tests.py b/tests/modeltests/m2m_signals/tests.py
    index d3d2a74..0a13fc7 100644
    a b class ManyToManySignalsTest(TestCase):  
    427427            'objects': [self.alice, self.bob],
    428428        })
    429429        self.assertEqual(self.m2m_changed_messages, expected_messages)
     430
     431    def test_m2m_signal_on_delete(self):
     432        self.vw.default_parts.add(self.engine)
     433        self.m2m_changed_messages = []
     434        self.vw.delete()
     435        self.assertTrue(len(self.m2m_changed_messages) > 0)
Back to Top