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