Fix tests

pull/2/head
Raphaël Vinot 2015-10-27 14:53:33 +01:00
parent 7f15b60539
commit 5ccae98404
1 changed files with 11 additions and 3 deletions

View File

@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
import unittest
import os
from bin.specific import KittenGroomerSpec
from bin.pier9 import KittenGroomerPier9
@ -14,17 +15,24 @@ class TestBasic(unittest.TestCase):
def setUp(self):
self.maxDiff = None
self.curpath = os.getcwd()
def test_specific(self):
spec = KittenGroomerSpec('tests/src', 'tests/dst')
src = os.path.join(self.curpath, 'tests/src')
dst = os.path.join(self.curpath, 'tests/dst')
spec = KittenGroomerSpec(src, dst)
spec.processdir()
def test_pier9(self):
spec = KittenGroomerPier9('tests/src', 'tests/dst')
src = os.path.join(self.curpath, 'tests/src')
dst = os.path.join(self.curpath, 'tests/dst')
spec = KittenGroomerPier9(src, dst)
spec.processdir()
def test_generic(self):
spec = KittenGroomer('tests/src', 'tests/dst')
src = os.path.join(self.curpath, 'tests/src')
dst = os.path.join(self.curpath, 'tests/dst')
spec = KittenGroomer(src, dst)
spec.processdir()
def test_help_file(self):