def test_minimize_issue(self): expected = { "id": 19, "pdf_url": "https://issuee", "image_url": "https://issuee.jpg", "date": "Feb 2013", } issue = Issue() issue.id = 19 issue.date = "Feb 2013" issue.pdf_url = "https://issuee" issue.image_url = "https://issuee.jpg" assert_equal(issue.minimize(), expected)
def test_maximize_issue(self): expected = { "id": 19, "id_issuu":"issuu19final", "pdf_url": "https://issuee", "image_url": "https://issuee.jpg", "date": "Feb 2013", "content": "Bla Bla Bla content" } issue = Issue() issue.id = 19 issue.id_issuu = "issuu19final" issue.date = "Feb 2013" issue.pdf_url = "https://issuee" issue.image_url = "https://issuee.jpg" issue.content = "Bla Bla Bla content" assert_equal(issue.maximize(), expected)