@@ -0,0 +1,589 @@
+# vim: set fileencoding=utf-8 :%0Aimport unittest%0Aimport element.context%0Aimport element.node%0Aimport mock%0A%0Aclass ContextCreatorTest(unittest.TestCase):%0A    def test_build(self):%0A        creator = element.context.ContextCreator()%0A%0A        handler = mock.Mock()%0A        handler.get_defaults.return_value = %7B%7D%0A%0A        node = element.node.Node(None, %22test%22)%0A%0A        context = creator.build(node, handler)%0A%0A        self.assertIsInstance(context, element.node.NodeContext)%0A        self.assertEquals(context.node.type, %22test%22)%0A        self.assertEquals(context.base_template, %22element:base.html%22)%0A

add ContextCreator tests