def test_onearg_site(self):
     """If an access code is provided, the site will not be set"""
     node = analytics.do_get_analytics(self.parser, self.token_onearg)
     self.assertEqual(node.site, None)
 def test_onearg_node_template(self):
     node = analytics.do_get_analytics(self.parser, self.token_onearg)
     self.assertEqual(node.template_name, 'google_analytics/test_template.html')
 def test_noarg_site(self):
     """If no access code is provided, the site will be set to the currently active site"""
     node = analytics.do_get_analytics(self.parser, self.token_noarg)
     self.assertEqual(node.site, self.site)
 def test_basic_return(self):
     node = analytics.do_get_analytics(self.parser, self.token_noarg)
     self.assertTrue(isinstance(node, template.Node))
 def _test_null_node_template(self):
     node = analytics.do_get_analytics(self.parser, self.token_null)
     self.assertEqual(node.template_name, 'google_analytics/_template.html')
예제 #6
0
 def test_onearg_site(self):
     """If an access code is provided, the site will not be set"""
     node = analytics.do_get_analytics(self.parser, self.token_onearg)
     self.assertEqual(node.site, None)
예제 #7
0
 def test_noarg_site(self):
     """If no access code is provided, the site will be set to the currently active site"""
     node = analytics.do_get_analytics(self.parser, self.token_noarg)
     self.assertEqual(node.site, self.site)
예제 #8
0
 def test_onearg_node_template(self):
     node = analytics.do_get_analytics(self.parser, self.token_onearg)
     self.assertEqual(node.template_name,
                      'google_analytics/test_template.html')
예제 #9
0
 def _test_null_node_template(self):
     node = analytics.do_get_analytics(self.parser, self.token_null)
     self.assertEqual(node.template_name, 'google_analytics/_template.html')
예제 #10
0
 def test_basic_return(self):
     node = analytics.do_get_analytics(self.parser, self.token_noarg)
     self.assertTrue(isinstance(node, template.Node))