Added simple config parser test

This commit is contained in:
2010-01-29 08:49:15 +00:00
parent 0106d75d25
commit 44b843d9d6

View File

@@ -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):
"""