Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions
test_StatsChart.TestStatsCharts Class Reference
Collaboration diagram for test_StatsChart.TestStatsCharts:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def setup_class
def teardown_class
def testStatsChart_useragents
def testStatsChart_hitcounts
def testStatsChart_languages

Public Attributes

 page

Static Public Attributes

string pagename = u'AutoCreatedMoinMoinTemporaryTestPageStatsChart'

Private Member Functions

def _test_macro

Detailed Description

StartsChart: testing StatsChart macro 

Definition at line 16 of file test_StatsChart.py.


Member Function Documentation

def test_StatsChart.TestStatsCharts._test_macro (   self,
  name,
  args 
) [private]

Definition at line 30 of file test_StatsChart.py.

00030 
00031     def _test_macro(self, name, args):
00032         m = make_macro(self.request, self.page)
00033         return m.execute(name, args)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 20 of file test_StatsChart.py.

00020 
00021     def setup_class(self):
00022         become_trusted(self.request)
00023         self.page = create_page(self.request, self.pagename, u"Foo!")
00024         # clean page scope cache entries
00025         for key in ['text_html', 'pagelinks', ]:
00026             caching.CacheEntry(self.request, self.page, key, scope='item').remove()

Here is the call graph for this function:

Definition at line 27 of file test_StatsChart.py.

00027 
00028     def teardown_class(self):
00029         nuke_page(self.request, self.pagename)

Here is the call graph for this function:

macro StatsChart hitcounts test: 'tests hitcounts' and clean page scope cache  

Definition at line 40 of file test_StatsChart.py.

00040 
00041     def testStatsChart_hitcounts(self):
00042         """ macro StatsChart hitcounts test: 'tests hitcounts' and clean page scope cache  """
00043         result = self._test_macro(u'StatsChart', u'hitcounts')
00044         expected = u'<form action="/AutoCreatedMoinMoinTemporaryTestPageStatsChart" method="GET"'
00045         assert expected in result

Here is the call graph for this function:

macro StatsChart languages test: 'tests languages' and clean page scope cache  

Definition at line 46 of file test_StatsChart.py.

00046 
00047     def testStatsChart_languages(self):
00048         """ macro StatsChart languages test: 'tests languages' and clean page scope cache  """
00049         result = self._test_macro(u'StatsChart', u'hitcounts')
00050         expected = u'<form action="/AutoCreatedMoinMoinTemporaryTestPageStatsChart" method="GET"'
00051         assert expected in result

Here is the call graph for this function:

macro StatsChart useragents test: 'tests useragents' and clean page scope cache 

Definition at line 34 of file test_StatsChart.py.

00034 
00035     def testStatsChart_useragents(self):
00036         """ macro StatsChart useragents test: 'tests useragents' and clean page scope cache """
00037         result = self._test_macro(u'StatsChart', u'useragents')
00038         expected = u'<form action="/AutoCreatedMoinMoinTemporaryTestPageStatsChart" method="GET"'
00039         assert expected in result

Here is the call graph for this function:


Member Data Documentation

Definition at line 22 of file test_StatsChart.py.

string test_StatsChart.TestStatsCharts.pagename = u'AutoCreatedMoinMoinTemporaryTestPageStatsChart' [static]

Definition at line 18 of file test_StatsChart.py.


The documentation for this class was generated from the following file: