diff --git a/plugins/com.python.pydev.refactoring/tests/com/python/pydev/refactoring/tdd/PyCreateClassTest.java b/plugins/com.python.pydev.refactoring/tests/com/python/pydev/refactoring/tdd/PyCreateClassTest.java index 6e5b6ca8df..1afe912100 100644 --- a/plugins/com.python.pydev.refactoring/tests/com/python/pydev/refactoring/tdd/PyCreateClassTest.java +++ b/plugins/com.python.pydev.refactoring/tests/com/python/pydev/refactoring/tdd/PyCreateClassTest.java @@ -72,7 +72,7 @@ public void testPyCreateClassInSameModule() throws Exception { ExecutePyCreate.execute(pyCreateClass, info, PyCreateClass.LOCATION_STRATEGY_BEFORE_CURRENT); assertContentsEqual("" + - "class MyClass(object):\n" + + "class MyClass:\n" + " pass\n" + "\n" + "\n" + @@ -108,7 +108,7 @@ public void testPyCreateClassInSameModule4() throws Exception { " pass\n" + "\n" + "\n" + - "class MyClass(object):\n" + + "class MyClass:\n" + " pass\n" + "\n" + "\n" @@ -146,7 +146,7 @@ public void testPyCreateClassInSameModule5() throws Exception { " pass\n" + "\n" + "\n" + - "class MyClass(object):\n" + "class MyClass:\n" + " pass\n" + "\n" + @@ -176,7 +176,7 @@ public void testPyCreateClassInSameModule6() throws Exception { "a = 10\n" + "\n" + "\n" + - "class MyClass(object):\n" + + "class MyClass:\n" + " pass\n" + "\n" + @@ -201,7 +201,7 @@ public void testPyCreateClassWithParameters() throws Exception { ExecutePyCreate.execute(pyCreateClass, info, PyCreateClass.LOCATION_STRATEGY_BEFORE_CURRENT); assertContentsEqual("" + - "class MyClass(object):\n" + + "class MyClass:\n" + " \n" + " def __init__(self, aa, bb, param2):\n" + @@ -224,7 +224,7 @@ public void testPyCreateClassWithParameters2() throws Exception { ExecutePyCreate.execute(pyCreateClass, info, PyCreateClass.LOCATION_STRATEGY_BEFORE_CURRENT); assertContentsEqual("" + - "class MyClass(object):\n" + + "class MyClass:\n" + " \n" + " def __init__(self, aa, bb, my_foo):\n" + @@ -255,7 +255,7 @@ public void testPyCreateClassInSameModule2() throws Exception { assertContentsEqual("" + "import foo\n" + "\n" + - "class MyClass(object):\n" + + "class MyClass:\n" + " pass\n" + "\n" + @@ -292,7 +292,7 @@ public void testPyCreateClassInSameModule3() throws Exception { "\n" + "\n" + - "class MyClass(object):\n" + + "class MyClass:\n" + " pass\n" + "\n" + "\n" + @@ -334,7 +334,7 @@ public void testPyCreateClassEndOfFile() throws Exception { "\n" + "\n" + - "class MyClass(object):\n" + + "class MyClass:\n" + " pass\n" + "\n" + "\n", document.get()); @@ -351,7 +351,7 @@ public void testPyCreateClassEndOfFile2() throws Exception { document); assertContentsEqual("" + - "class Foo(object):\n" + + "class Foo:\n" + " pass\n" + "\n" + "\n", document.get());