From 44b843d9d6e0bd1c7d76c5aefebecd9561f7da95 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Fri, 29 Jan 2010 08:49:15 +0000 Subject: [PATCH] Added simple config parser test --- tests/testtvorganise.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/tests/testtvorganise.py b/tests/testtvorganise.py index dc1341c..7d85e2e 100755 --- a/tests/testtvorganise.py +++ b/tests/testtvorganise.py @@ -5,15 +5,31 @@ import tvorganise import unittest import os import shutil +import tempfile class testTvOrganise(unittest.TestCase): """ Test class for TvOrganise module """ - def setUp(self): + def testConfigParser(self): + """ + Simple test to check to see if the config parser actually returns a + dict on completion + """ + dict = self.tvo._get_config('tvorganise.cfg') + self.assertTrue(dict) + + def testConfigSettings(self): + """ + Using a predefined dict, save then load the config and validate + the contents + """ pass + def setUp(self): + self.tvo = tvorganise.TvOrganiser() + class testFindFiles(unittest.TestCase): """