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

Unified Diff: tests/trychange_unittest.py

Issue 122040: Refactor the unit tests. (Closed)
Patch Set: even more cleanup Created 11 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
« no previous file with comments | « tests/test-lib.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/trychange_unittest.py
diff --git a/tests/trychange_unittest.py b/tests/trychange_unittest.py
index 1e68dfc3eaade69c2ae32919b0fee7f7866b23f1..27f8db6119c4be3fc8fc650d85c067645bf07406 100644
--- a/tests/trychange_unittest.py
+++ b/tests/trychange_unittest.py
@@ -9,29 +9,14 @@ import os
import unittest
# Local imports
+import super_mox
import trychange
+from super_mox import mox
-class TryChangeTestsBase(unittest.TestCase):
+class TryChangeTestsBase(super_mox.SuperMoxTestBase):
"""Setups and tear downs the mocks but doesn't test anything as-is."""
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def compareMembers(self, object, members):
- """If you add a member, be sure to add the relevant test!"""
- # Skip over members starting with '_' since they are usually not meant to
- # be for public use.
- actual_members = [x for x in sorted(dir(object))
- if not x.startswith('_')]
- expected_members = sorted(members)
- if actual_members != expected_members:
- diff = ([i for i in actual_members if i not in expected_members] +
- [i for i in expected_members if i not in actual_members])
- print diff
- self.assertEqual(actual_members, expected_members)
+ pass
class TryChangeUnittest(TryChangeTestsBase):
« no previous file with comments | « tests/test-lib.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698