コード例 #1
0
 def test_list_server_templates(self):
     self._create_template()
     templates = righteous.list_server_templates()
     assert len(templates) > 0
     assert_equal(
         sorted(templates[0].keys()),
         sorted([u'description', u'is_head_version', u'created_at',
                 u'updated_at', u'href', u'version', u'nickname']))
コード例 #2
0
 def test_list_server_templates(self):
     self.response.content = '{}'
     righteous.list_server_templates()
     self.request.assert_called_once_with('/server_templates.js')