summaryrefslogtreecommitdiffstats
path: root/tests/file_page_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/file_page_test.py')
-rw-r--r--tests/file_page_test.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/file_page_test.py b/tests/file_page_test.py
index a1123de..3fff51e 100644
--- a/tests/file_page_test.py
+++ b/tests/file_page_test.py
@@ -41,6 +41,7 @@ def test_context():
assert(context['file_extension'] == 'txt')
assert(context['title'] == 'file test: test_file.txt')
assert(context['type'] == 'text')
+ assert(context['breadcrumbs'] == '[/](/file/content/123/t/)/[test_file.txt](/file/content/123/t/test_file.txt)')
def test_context_dot_file():
file = MagicMock()
@@ -57,6 +58,7 @@ def test_context_dot_file():
assert(context['file_extension'] == '')
assert(context['title'] == 'file test: .file')
assert(context['type'] == 'text')
+ assert(context['breadcrumbs'] == '[/](/file/content/123/t/)/[.file](/file/content/123/t/_file)')
def test_bytes_to_content_text():
content, type = bytes_to_content('test'.encode())