Ticket #18823: failing_tests.patch

File failing_tests.patch, 749 bytes (added by anonymous, 12 years ago)
  • tests/regressiontests/m2m_through_regress/tests.py

    diff --git a/tests/regressiontests/m2m_through_regress/tests.py b/tests/regressiontests/m2m_through_regress/tests.py
    index 458c194..6f76f7b 100644
    a b class ToFieldThroughTests(TestCase):  
    136136            ["<Car: Toyota>"]
    137137            )
    138138
     139    def test_to_field_clear_reverse(self):
     140        self.driver.car_set.clear()
     141        self.assertQuerysetEqual(
     142            self.driver.car_set.all(),[])
     143
     144    def test_to_field_clear(self):
     145        self.car.drivers.clear()
     146        self.assertQuerysetEqual(
     147            self.car.drivers.all(),[])
     148
    139149class ThroughLoadDataTestCase(TestCase):
    140150    fixtures = ["m2m_through"]
Back to Top