Fakultas Ilmu Komputer UI

tests.py 79.7 KB
Newer Older
2001
2002
2003
2004
2005
2006
2007
2008
2009
            if prev_timestamp:
                self.assertTrue(prev_timestamp > materi_timestamp)
            prev_timestamp = materi_timestamp
			
    def test_no_history_display_message(self):
        no_history_msg = "Anda belum mengunduh materi. Silahkan unduh materi yang anda butuhkan"
        response = self.client.get(self.history_url)
        resp_html = response.content.decode('utf8')
        self.assertIn(no_history_msg, resp_html)
For faster browsing, not all history is shown. View entire blame