There's something I discovered about the Rails framework which I really like, the ability to test the output of templates really easily with css selector, for example test how many "li" elements are in a page, if an element with a certain ID is present, ecc.
AssertContains feels really limited compared to these instruments, check them out: http://guides.rubyonrails.org/testing.html#testing-views
How to achieve something similar with django? Is there a python library that implements CSS selectors?