diff options
Diffstat (limited to 'python/testSrc/com/jetbrains/python/refactoring/classes/pullUp/PyPullUpInfoModelTest.java')
-rw-r--r-- | python/testSrc/com/jetbrains/python/refactoring/classes/pullUp/PyPullUpInfoModelTest.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/python/testSrc/com/jetbrains/python/refactoring/classes/pullUp/PyPullUpInfoModelTest.java b/python/testSrc/com/jetbrains/python/refactoring/classes/pullUp/PyPullUpInfoModelTest.java index 9fe02c302c9a..3e5e508901d7 100644 --- a/python/testSrc/com/jetbrains/python/refactoring/classes/pullUp/PyPullUpInfoModelTest.java +++ b/python/testSrc/com/jetbrains/python/refactoring/classes/pullUp/PyPullUpInfoModelTest.java @@ -69,6 +69,27 @@ public class PyPullUpInfoModelTest extends PyTestCase { Assert.assertThat("Instance on member dependencies failed", getErrorMemberNames(), Matchers.containsInAnyOrder("self.instance_field_bar")); } + /** + * Check dependnecies for properties, declared in old-style + * + */ + public void testOldProperty() throws Exception { + checkMembers("method_depends_on_old_property(self)"); + Assert.assertThat("Method on old property dependency failed", getErrorMemberNames(), Matchers.containsInAnyOrder( + "old_property", + "old_property_2", + "old_property_3")); + } + + /** + * + * Check dependnecies for properties, declared in new-style + */ + public void testNewProperty() throws Exception { + checkMembers("method_depends_on_new_property(self)"); + Assert.assertThat("Method on new property dependency failed", getErrorMemberNames(), Matchers.containsInAnyOrder("new_property", "new_property_2")); + } + /** * All dependencies are met: new (destination) class has all of them |