Python question

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
aag031
Posts: 8
Joined: Thu Jul 11, 2013 12:49 pm

Python question

Post by aag031 »

I am a new comer in Zeus IDE world. I install evaluation copy of Zeus 3.97p

1. I created new workspace with one python file
2. Click Classes view

I observed my class and local variables of all methods in my class. But I don't see any method of my class. Can I correct this situation

Thanks
Alexander
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Can I correct this situation
Could you post a sample of the python class with the method :?:

That will help me figure out why it is not working.

Cheers Jussi
aag031
Posts: 8
Joined: Thu Jul 11, 2013 12:49 pm

Post by aag031 »

jussij wrote:
Can I correct this situation
Could you post a sample of the python class with the method :?:

That will help me figure out why it is not working.

Cheers Jussi

Code: Select all

#!/usr/bin/env python2

import unittest
import os
import re
import ConfigParser



class join_unit_test(unittest.TestCase):
	def	setUp(self):
		pass

	def	tearDown( self ):
		pass

	def	test_join_unix_two_relative_path(self):
		path1="./data/http-utility/"
		path2="logger.config"
		expect="./data/http-utility/logger.config"
		result = os.path.join(path1, path2)
		self.assertEqual(result,expect)

	def	test_join_win_two_relative_path(self):
		path1=".\\data\\http-utility\"
		path2="logger.config"
		expect=".\\data\\http-utility\\logger.config"
		result = os.path.join(path1, path2)
		self.assertEqual(result,expect)


	def	test_join_unix_abs_relative_path(self):
		path1="/data/http-utility/"
		path2="logger.config"
		expect="/data/http-utility/logger.config"
		result = os.path.join(path1, path2)
		self.assertEqual(result,expect)


	def	test_join_unix_abs_relative_path2(self):
		path1="/data/http-utility/"
		path2="/data/temp/"
		path3="logger.config"
		expect="/data/temp/logger.config"
		result = os.path.join(path1, path2, path3)
		self.assertEqual(result,expect)

	def	test_join_unix_abs_relative_path3(self):
		path1="/data/http-utility/"
		path2="/data/temp/"
		path3="/data/temp2/"
		path4="logger.config"
		expect="/data/temp2/logger.config"
		result = os.path.join(path1, path2, path3, path4)
		self.assertEqual(result,expect)

	def	test_join_win_abs_relative_path10(self):
		path1="c:/data/http-utility/"
		path2="logger.config"
		expect="c:/data/http-utility/logger.config"
		result = os.path.join(path1, path2)
		self.assertEqual(result,expect)

	def	test_join_win_abs_relative_path20(self):
		path1="c:\\data\\http-utility\"
		path2="logger.config"
		expect="c:\\data\\http-utility\\logger.config"
		result = os.path.join(path1, path2)
		self.assertEqual(result,expect)

	def	test_join_win_abs_relative_path21(self):
		path1="c:\\data\\http-utility"
		path2="logger.config"
		expect="c:\\data\\http-utility\\logger.config"
		result = os.path.join(path1, path2)
		self.assertEqual(result,expect)

	def	test_join_win_abs_relative_path22(self):
		path1="c:/data/http-utility"
		path2="logger.config"
		expect="c:/data/http-utility\\logger.config"
		result = os.path.join(path1, path2)
		self.assertEqual(result,expect)


	def	test_join_win_abs_relative_path30(self):
		path1="c:/data/http-utility/"
		path2="c:/logger.config"
		expect="c:/logger.config"
		result = os.path.join(path1, path2)
		self.assertEqual(result,expect)

	def	test_join_win_abs_relative_path40(self):
		path1="c:/data/http-utility/"
		path2="c:/logger.config"
		path3="logger.config"
		expect="c:/logger.config\\logger.config"
		result = os.path.join(path1, path2, path3)
		self.assertEqual(result,expect)

	def	test_join_win_abs_relative_path50(self):
		path1="c:"
		path2="logger.config"
		expect="c:logger.config"
		result = os.path.join(path1, path2)
		self.assertEqual(result,expect)

	def	test_join_win_abs_relative_path60(self):
		path1="c:"
		path2=os.sep
		path3="logger.config"
		expect="c:\\logger.config"
		result = os.path.join(path1, path2, path3)
		self.assertEqual(result,expect)

	def	test_join_win_path_space_path10(self):
		path1="c:"
		path2=os.sep
		path3="logger config"
		expect="c:\\logger config"
		result = os.path.join(path1, path2, path3)
		self.assertEqual(result,expect)

	def	test_join_win_abs_relative_path11(self):
		path1="c:"
		path2=os.sep
		path3=" logger config "
		expect="c:\\ logger config "
		result = os.path.join(path1, path2, path3)
		self.assertEqual(result,expect)



if __name__	== '__main__':
	unittest.main()
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

For me this appears to be working.

When I add your test.py code to a new workspace I see this:
Image

Cheers Jussi
aag031
Posts: 8
Joined: Thu Jul 11, 2013 12:49 pm

Post by aag031 »

jussij wrote:For me this appears to be working.

When I add your test.py code to a new workspace I see this:
Image

Cheers Jussi
Yes it works on 3.97q-Beta3 that was advised in debugger topic
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Yes it works on 3.97q-Beta3 that was advised in debugger topic
Excellent. This must have been fixed just recently :)

Cheers Jussi
Post Reply