import unittest
import sphinxtogithub
class TestReplacer(unittest.TestCase):
before = """
Breathe's documentation — BreatheExample v0.0.1 documentation
"""
after = """
Breathe's documentation — BreatheExample v0.0.1 documentation
"""
def testReplace(self):
replacer = sphinxtogithub.Replacer("_static/default.css", "static/default.css")
self.assertEqual(replacer.process(self.before), self.after)
def testSuite():
suite = unittest.TestSuite()
suite.addTest(TestReplacer("testReplace"))
return suite