Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(953)

Unified Diff: chrome/common/extensions/docs/server2/template_utility_test.py

Issue 10545043: Extensions docs server: Design changes, partial template support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Made suggested changes Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/template_utility_test.py
diff --git a/chrome/common/extensions/docs/server2/template_utility_test.py b/chrome/common/extensions/docs/server2/template_utility_test.py
deleted file mode 100755
index b719dd717f4eb1f311368bf54e6398eeb85d86b0..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/docs/server2/template_utility_test.py
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import os
-import unittest
-import test_urlfetch
-
-from template_utility import TemplateUtility
-from third_party.handlebar import Handlebar
-
-def _ReadFile(filename):
- with open(os.path.join('test_data', 'template_utility', filename), 'r') as f:
- return f.read()
-
-class TemplateUtilityTest(unittest.TestCase):
- def _RenderTest(self, base):
- template = Handlebar(_ReadFile(base + '_tmpl.html'))
- self.assertEquals(_ReadFile(base + '.html'),
- self.t_util.RenderTemplate(template, _ReadFile(base + '.json')))
-
- def testRenderTemplate(self):
- self.t_util = TemplateUtility()
- self._RenderTest('test1')
- self._RenderTest('test2')
-
-if __name__ == '__main__':
- unittest.main()

Powered by Google App Engine
This is Rietveld 408576698