Did I find the right examples for you? yes no

All Samples(4)  |  Call(0)  |  Derive(0)  |  Import(4)

src/d/j/django-listable-0.1.0/listable-demo/staff/tests/test_views.py   django-listable(Download)
    def test_toggle(self):
 
        from surveys.models import InactiveQuarter, RoundingQuarter
        cur = RoundingQuarter.objects.current_quarter()
 

src/d/j/django-listable-0.1.0/listable-demo/staff/tests/test_models.py   django-listable(Download)
    def test_toggle_status(self):
        from surveys.models import InactiveQuarter, RoundingQuarter
        cur = RoundingQuarter.objects.current_quarter()
 
        self.staff.toggle_status()
    def test_inactive_status(self):
        from surveys.models import InactiveQuarter, RoundingQuarter
        cur = RoundingQuarter.objects.current_quarter()
 
        InactiveQuarter.objects.create( staff=self.staff, quarter=cur)
        expected = models.FYQTR_ACTIVE_CHOICES_DISPLAY[models.FYQTR_INACTIVE]
        self.assertEqual(self.staff.status(),expected)
 
    def test_active_status(self):
        from surveys.models import InactiveQuarter, RoundingQuarter