def test_simplest_case(self): vim.current.window.cursor = (19, 8) superpy.get_super() self.assertEqual(vim.current.buffer[18], ' ' * 8 + 'super(Student, self).get_full_name()')
def test_various_args(self): vim.current.window.cursor = (22, 8) superpy.get_super() self.assertEqual(vim.current.buffer[21], ' ' * 8 + 'super(Student, self).get_foo(name, *args, **kwargs)')
def test_custom_self_id(self): "this is used instead of self" vim.current.window.cursor = (16, 8) superpy.get_super() self.assertEqual(vim.current.buffer[15], ' ' * 8 + 'super(Student, this).get_name()')