summaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-04-03 18:42:21 -0700
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-04-03 18:42:21 -0700
commita4d763d54d83d4cbc9c254c897165563b119f7e8 (patch)
treeee134c32eec215ac28dcb00d0748dcb0bb9887be /tests/data
parenta06fd4233d55ea317ea03b81c98b149e3d5b1364 (diff)
parent368f0dfd2f61b0e4a92d530e033eaec4a6fcfeb9 (diff)
downloadpystache-a4d763d54d83d4cbc9c254c897165563b119f7e8.tar.gz
Merge branch 'development' to 'master': staging version 0.5.0-rc.
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/__init__.py0
-rw-r--r--tests/data/ascii.mustache1
-rw-r--r--tests/data/duplicate.mustache1
-rw-r--r--tests/data/locator/duplicate.mustache1
-rw-r--r--tests/data/non_ascii.mustache1
-rw-r--r--tests/data/sample_view.mustache1
-rw-r--r--tests/data/say_hello.mustache1
-rw-r--r--tests/data/views.py16
8 files changed, 22 insertions, 0 deletions
diff --git a/tests/data/__init__.py b/tests/data/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/data/__init__.py
diff --git a/tests/data/ascii.mustache b/tests/data/ascii.mustache
new file mode 100644
index 0000000..e86737b
--- /dev/null
+++ b/tests/data/ascii.mustache
@@ -0,0 +1 @@
+ascii: abc \ No newline at end of file
diff --git a/tests/data/duplicate.mustache b/tests/data/duplicate.mustache
new file mode 100644
index 0000000..a0515e3
--- /dev/null
+++ b/tests/data/duplicate.mustache
@@ -0,0 +1 @@
+This file is used to test locate_path()'s search order. \ No newline at end of file
diff --git a/tests/data/locator/duplicate.mustache b/tests/data/locator/duplicate.mustache
new file mode 100644
index 0000000..a0515e3
--- /dev/null
+++ b/tests/data/locator/duplicate.mustache
@@ -0,0 +1 @@
+This file is used to test locate_path()'s search order. \ No newline at end of file
diff --git a/tests/data/non_ascii.mustache b/tests/data/non_ascii.mustache
new file mode 100644
index 0000000..bd69b61
--- /dev/null
+++ b/tests/data/non_ascii.mustache
@@ -0,0 +1 @@
+non-ascii: é \ No newline at end of file
diff --git a/tests/data/sample_view.mustache b/tests/data/sample_view.mustache
new file mode 100644
index 0000000..e86737b
--- /dev/null
+++ b/tests/data/sample_view.mustache
@@ -0,0 +1 @@
+ascii: abc \ No newline at end of file
diff --git a/tests/data/say_hello.mustache b/tests/data/say_hello.mustache
new file mode 100644
index 0000000..84ab4c9
--- /dev/null
+++ b/tests/data/say_hello.mustache
@@ -0,0 +1 @@
+Hello, {{to}} \ No newline at end of file
diff --git a/tests/data/views.py b/tests/data/views.py
new file mode 100644
index 0000000..4d9df02
--- /dev/null
+++ b/tests/data/views.py
@@ -0,0 +1,16 @@
+# coding: utf-8
+
+from pystache import TemplateSpec
+
+class SayHello(object):
+
+ def to(self):
+ return "World"
+
+
+class SampleView(TemplateSpec):
+ pass
+
+
+class NonAscii(TemplateSpec):
+ pass