コード例 #1
0
ファイル: test_client.py プロジェクト: hannosch/pyelastictest
 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')
コード例 #2
0
ファイル: test_client.py プロジェクト: hannosch/pyelastictest
 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'))