Guest User

Untitled

a guest
Oct 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. class TestNestedListing(TestCase):
  2. def setUp(self):
  3. super(TestNestedListing, self).setUp()
  4. create_basic_categories(self)
  5. create_and_place_a_publishable(self)
  6. create_and_place_more_publishables(self)
  7. list_all_publishables_in_category_by_hour(self, category=self.category_nested_second)
  8. list_all_publishables_in_category_by_hour(self, category=self.category_nested)
  9.  
  10. def test_get_listing_with_all_children_in_nested_category(self):
  11. l = Listing.objects.get_listing(category=self.category_nested, children=ListingHandler.ALL)
  12. tools.assert_equals(self.listings, list(l))
Add Comment
Please, Sign In to add comment