Pagination replacement

I added tests that checks the navigation of pagination. I also checked to make sure the formatting was consistant.
This line fails in Python 3, you're comparing a Post to an int. Did you mean to use self.x.id?