예제 #1
0
파일: tests.py 프로젝트: astagi/magpi-api
 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)
예제 #2
0
파일: tests.py 프로젝트: astagi/magpi-api
 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)