Files
Michael Jones e98c23737e Added more test cases
Tests for Layout, LayoutFactory and setup(app). Resulted in structuring
some code so that LayoutFactory uses other factories to generate the
helpers and handlers for the Layout.
2010-01-09 15:04:28 +00:00

29 lines
547 B
Python

from sphinxtogithub.tests import MockExists, MockRemove
import sphinxtogithub
import unittest
class TestRemover(unittest.TestCase):
def testCall(self):
exists = MockExists()
remove = MockRemove()
remover = sphinxtogithub.Remover(exists, remove)
filepath = "filepath"
remover(filepath)
self.assertEqual(filepath, exists.name)
self.assertEqual(filepath, remove.name)
def testSuite():
suite = unittest.TestSuite()
suite.addTest(TestRemover("testCall"))
return suite