pystache.tests.spectesting module

Exposes a get_spec_tests() function for the project’s test harness.

Creates a unittest.TestCase for the tests defined in the mustache spec.

class pystache.tests.spectesting.SpecTestBase(methodName='runTest')[source]

Bases: TestCase, AssertStringMixin

pystache.tests.spectesting.get_spec_tests(spec_test_dir)[source]

Return a list of unittest.TestCase instances.

pystache.tests.spectesting.parse(u)[source]

Parse the contents of a spec test file, and return a dict.

Arguments:

u: a unicode string.