Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TestNestedListing(TestCase):
- def setUp(self):
- super(TestNestedListing, self).setUp()
- create_basic_categories(self)
- create_and_place_a_publishable(self)
- create_and_place_more_publishables(self)
- list_all_publishables_in_category_by_hour(self, category=self.category_nested_second)
- list_all_publishables_in_category_by_hour(self, category=self.category_nested)
- def test_get_listing_with_all_children_in_nested_category(self):
- l = Listing.objects.get_listing(category=self.category_nested, children=ListingHandler.ALL)
- tools.assert_equals(self.listings, list(l))
Add Comment
Please, Sign In to add comment