Back to index

plone3  3.1.7
Classes | Functions | Variables
PlacelessTranslationService.tests.testPTS Namespace Reference

Classes

class  TestPTS

Functions

def getFSVersionTuple
def test_suite

Variables

tuple PACKAGE_HOME = package_home(pts_globals)

Function Documentation

Reads version.txt and returns version tuple

Definition at line 19 of file testPTS.py.

00019 
00020 def getFSVersionTuple():
00021     """Reads version.txt and returns version tuple"""
00022     vfile = "%s/version.txt" % PACKAGE_HOME
00023     v_str = open(vfile, 'r').read().lower()
00024     return versionTupleFromString(v_str)
00025 

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 165 of file testPTS.py.

00165 
00166 def test_suite():
00167     from unittest import TestSuite, makeSuite
00168     suite = TestSuite()
00169     suite.addTest(makeSuite(TestPTS))
00170     return suite


Variable Documentation

Definition at line 17 of file testPTS.py.