def test_active_shipping_methods_1(self):
        # At start we have two active shipping methods, see above.
        sm = ShippingMethod.objects.active()
        self.assertEqual(len(sm), 2)

        # Now we deactivate one.
        self.sm1.active = False
        self.sm1.save()
        sm = ShippingMethod.objects.active()
        self.assertEqual(len(sm), 1)

        # Now we deactivate the other one.
        self.sm2.active = False
        self.sm2.save()
        sm = ShippingMethod.objects.active()
        self.assertEqual(len(sm), 0)
Return the disk usage in a directory.
dataset/ETHPy150Open diefenbach/django-lfs/lfs/shipping/tests.py/ShippingMethodTestCase.test_active_shipping_methods_1--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/externals/joblib/disk.py/disk_used