Hugoifier

hugoifier / tests / test_parser.py
Source Blame History 18 lines
6272677… lmata 1 """Tests for utils.parser."""
6272677… lmata 2 import unittest
6272677… lmata 3
91515c0… lmata 4 from hugoifier.utils.parser import parse
6272677… lmata 5
6272677… lmata 6
6272677… lmata 7 class TestParse(unittest.TestCase):
6272677… lmata 8 def test_returns_complete_message(self):
6272677… lmata 9 result = parse("/some/path")
6272677… lmata 10 self.assertIn("complete", result.lower())
6272677… lmata 11
6272677… lmata 12 def test_accepts_path(self):
6272677… lmata 13 result = parse("/tmp/site")
6272677… lmata 14 self.assertIsInstance(result, str)
6272677… lmata 15
6272677… lmata 16
6272677… lmata 17 if __name__ == "__main__":
6272677… lmata 18 unittest.main()

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button