コード例 #1
0
 def test_blog_list_in_context(self):
     mock_template = mock.Mock()
     builder = ListPageBuilder(mock_template)
     builder._blog_list = 'fake li items'
     builder._generate_output()
     context = mock_template.render.call_args[0][0]
     self.assertEqual('fake li items', context['blog_list'])
コード例 #2
0
 def test_blog_list_in_context(self):
     mock_template = mock.Mock()
     builder = ListPageBuilder(mock_template)
     builder._blog_list = 'fake li items'
     builder._generate_output()
     context = mock_template.render.call_args[0][0]
     self.assertEqual('fake li items', context['blog_list'])