summaryrefslogtreecommitdiff
path: root/bin/reportlab/test/test_tools_pythonpoint.py
diff options
context:
space:
mode:
authorStephane Wirtel <stephane@tinyerp.com>2008-11-14 16:06:02 +0100
committerStephane Wirtel <stephane@tinyerp.com>2008-11-14 16:06:02 +0100
commit3dae09ac14990a82aa9ef8afc2a0429b877ab123 (patch)
treefd4e64f6f37c8f23f54119197fad7ea69de418e2 /bin/reportlab/test/test_tools_pythonpoint.py
parent882cd7027feca65405cfdf1337064aa676830d4b (diff)
Remove pydot, pychart and reportlab.
bzr revid: stephane@tinyerp.com-20081114150602-cpp1eeo3d0837fev
Diffstat (limited to 'bin/reportlab/test/test_tools_pythonpoint.py')
-rw-r--r--bin/reportlab/test/test_tools_pythonpoint.py39
1 files changed, 0 insertions, 39 deletions
diff --git a/bin/reportlab/test/test_tools_pythonpoint.py b/bin/reportlab/test/test_tools_pythonpoint.py
deleted file mode 100644
index bddd0138096..00000000000
--- a/bin/reportlab/test/test_tools_pythonpoint.py
+++ /dev/null
@@ -1,39 +0,0 @@
-"""Tests for the PythonPoint tool.
-"""
-import os, sys, string
-from reportlab.test import unittest
-from reportlab.test.utils import makeSuiteForClasses, outputfile, printLocation
-import reportlab
-
-class PythonPointTestCase(unittest.TestCase):
- "Some very crude tests on PythonPoint."
- def test0(self):
- "Test if pythonpoint.pdf can be created from pythonpoint.xml."
-
- join, dirname, isfile, abspath = os.path.join, os.path.dirname, os.path.isfile, os.path.abspath
- rlDir = abspath(dirname(reportlab.__file__))
- from reportlab.tools.pythonpoint import pythonpoint
- from reportlab.lib.utils import isCompactDistro, open_for_read
- ppDir = dirname(pythonpoint.__file__)
- xml = join(ppDir, 'demos', 'pythonpoint.xml')
- datafilename = 'pythonpoint.pdf'
- outDir = outputfile('')
- if isCompactDistro():
- cwd = None
- xml = open_for_read(xml)
- else:
- cwd = os.getcwd()
- os.chdir(join(ppDir, 'demos'))
- pdf = join(outDir, datafilename)
- if isfile(pdf): os.remove(pdf)
- pythonpoint.process(xml, outDir=outDir, verbose=0, datafilename=datafilename)
- if cwd: os.chdir(cwd)
- assert os.path.exists(pdf)
-
-def makeSuite():
- return makeSuiteForClasses(PythonPointTestCase)
-
-#noruntests
-if __name__ == "__main__":
- unittest.TextTestRunner().run(makeSuite())
- printLocation()