def test_render_moustache_bad_key(self): self.assertEqual(apply_config.render_moustache("{{badkey}}", {}), u'')
def test_render_moustache(self): self.assertEqual(apply_config.render_moustache("ab{{x.a}}cd", { "x": {"a": "123"}}), "ab123cd")
def test_render_moustache_bad_key(self): self.assertEqual(u'', apply_config.render_moustache("{{badkey}}", {}))
def test_render_moustache_none(self): self.assertEqual( 'foo: ', apply_config.render_moustache("foo: {{foo}}", {'foo': None}))
def test_render_moustache(self): self.assertEqual( "ab123cd", apply_config.render_moustache("ab{{x.a}}cd", {"x": { "a": "123" }}))