def test_get_template(self): client = self._make_one() client.create_template('template3', { 'template': 'test_index', }) res = client.get_template('template3') self.assertEqual(res['template3']['template'], 'test_index')
def test_delete_template(self): client = self._make_one() client.create_template('template2', { 'template': 'test_index', }) client.delete_template('template2') self.assertFalse(client.get_template('template2'))