def test_is_free_for_empty_basket(self):! ...! ! ! class TestFixedPriceShipping(TestCase):! ! @attr(slow=True)! def test_returns_fixed_price_for_basket(self):! ...! Wrap a class
mock.patch, 'django.db.backends.util.CursorWrapper',! Mock(side_effect=RuntimeError(! "Using the database is not permitted")))! ! ! @no_database()! class AUnitTest(TestCase):! ...! http://bit.ly/126vPrt
mock.patch, 'django.db.backends.util.CursorWrapper',! Mock(side_effect=RuntimeError(! "Using the database is not permitted")))! ! ! @no_database()! class AUnitTest(TestCase):! ...! http://bit.ly/126vPrt Currying mock.patch!
mock.patch, 'django.db.backends.util.CursorWrapper',! Mock(side_effect=RuntimeError(! "Using the database is not permitted")))! ! ! @no_database()! class AUnitTest(TestCase):! ...! http://bit.ly/126vPrt Wrap classes/methods