From 1bdb14055dd1b2395047793ee28c17bbae65c845 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Thu, 27 Sep 2012 14:33:34 -0400 Subject: wrote unit tests for Properties --- testsuite/common.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'testsuite/common.py') diff --git a/testsuite/common.py b/testsuite/common.py index fc79e73e7..3aeeaf5f2 100644 --- a/testsuite/common.py +++ b/testsuite/common.py @@ -3,12 +3,7 @@ import re import sys import unittest from mock import patch, MagicMock, _patch, DEFAULT - -try: - from functools import wraps -except ImportError: - def wraps(wrapped): - return lambda f: f +from Bcfg2.Compat import wraps datastore = "/" @@ -33,6 +28,7 @@ try: except ImportError: has_django = False + try: from mock import call except ImportError: -- cgit v1.2.3-1-g7c22