summaryrefslogtreecommitdiffstats
path: root/tests/overview_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/overview_test.py')
-rw-r--r--tests/overview_test.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/overview_test.py b/tests/overview_test.py
new file mode 100644
index 0000000..fa51858
--- /dev/null
+++ b/tests/overview_test.py
@@ -0,0 +1,8 @@
+from g2h.overview_page import OverviewPage
+
+def test_init():
+ page = OverviewPage('test/overview', 'overview test', 'test branch', 'test tag')
+ context = page.context()
+ assert(context['title'] == 'overview test')
+ assert(context['branches'] == 'test branch')
+ assert(context['tags'] == 'test tag')