summaryrefslogtreecommitdiff
path: root/mox_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'mox_test.py')
-rwxr-xr-xmox_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mox_test.py b/mox_test.py
index bed58b9..6439060 100755
--- a/mox_test.py
+++ b/mox_test.py
@@ -1327,7 +1327,7 @@ class MoxTest(unittest.TestCase):
def testCallOnNonCallableObject(self):
"""Test that you cannot call a non-callable object."""
- mock_obj = self.mox.CreateMock(TestClass)
+ mock_obj = self.mox.CreateMock("string is not callable")
self.assertRaises(TypeError, mock_obj)
def testCallableObjectWithBadCall(self):
@@ -2229,7 +2229,7 @@ class MoxTestDontMockProperties(MoxTestBaseTest):
mock_class.prop_attr)
-class TestClass:
+class TestClass(object):
"""This class is used only for testing the mock framework"""
SOME_CLASS_VAR = "test_value"