Пример #1
0
    def test_it_exists(self):
        from karl.content.views.blog import show_mailin_trace_blog

        self._exists = True
        request = testing.DummyRequest()
        response = show_mailin_trace_blog(None, request)
        self.assertTrue(response["timestamp"].startswith("Wed May 11"))
Пример #2
0
 def test_it_does_not_exist(self):
     from karl.content.views.blog import show_mailin_trace_blog
     request = testing.DummyRequest()
     response = show_mailin_trace_blog(None, request)
     self.assertEqual(response['timestamp'], None)
Пример #3
0
 def test_it_does_not_exist(self):
     from karl.content.views.blog import show_mailin_trace_blog
     request = testing.DummyRequest()
     response = show_mailin_trace_blog(None, request)
     self.assertEqual(response['timestamp'], None)
Пример #4
0
 def test_it_exists(self):
     from karl.content.views.blog import show_mailin_trace_blog
     self._exists = True
     request = testing.DummyRequest()
     response = show_mailin_trace_blog(None, request)
     self.assertTrue(response['timestamp'].startswith('Wed May 11'))
Пример #5
0
 def test_it_exists(self):
     from karl.content.views.blog import show_mailin_trace_blog
     self._exists = True
     request = testing.DummyRequest()
     response = show_mailin_trace_blog(None, request)
     self.assertEqual(response['timestamp'], 'Wed May 11 09:27:41 2011')