[BangPypers] issues using constructor in unittest

2011-03-14 Thread Nitin Kumar
Hi All, See below small example. I am trying to have one constructor for a class with unittest inherited. But with any of the permutation combination I am getting the error. Any idea for reason behind this?? import unittest2 class XMLSupport(unittest2.TestCase): def __init__(self):

Re: [BangPypers] issues using constructor in unittest

2011-03-14 Thread Navin Kabra
On Mon, Mar 14, 2011 at 1:56 PM, Nitin Kumar nitin.n...@gmail.com wrote: See below small example. I am trying to have one constructor for a class with unittest inherited. Avoid overriding the constructor of TestCase. That is not recommended. self.x = 3 Put this is setUp

[BangPypers] [OT][JOBS] Interview/Test for Python/Django candidates

2011-03-14 Thread Rajeev J Sebastian
Hi, I'm writing on behalf of Alokin Software Pvt Ltd based at Technopark Trivandrum. We are looking for some candidates with strong skills in Python, Django development on a Linux platform. Preferable additional skills: frontend stuff (HTML/CSS/Javascript), knowledge of system administration

Re: [BangPypers] issues using constructor in unittest

2011-03-14 Thread Noufal Ibrahim
On Mon, Mar 14 2011, Nitin Kumar wrote: [...] I used this way as explained by you, still getting the same error. [...] Why don't you consider using an alternate test runner like nose or py.test? This whole XUnit style unit testing thing is not really necessary in the Python world. You just

[BangPypers] plist files

2011-03-14 Thread Python User
Hi All, I have a plist file, test.plist, All I want is read the scriptNO tag value 12345 and replace it with 67899. Can any one please help me out for this. The file content is ?xml version=1.0 encoding=UTF-8? !DOCTYPE plist PUBLIC -//test//EN http://www.test.com/DTDs/PropertyList-1.0.dtd;

Re: [BangPypers] issues using constructor in unittest

2011-03-14 Thread Senthil Kumaran
On Mon, Mar 14, 2011 at 04:24:49AM -0700, Noufal Ibrahim wrote: Why don't you consider using an alternate test runner like nose or py.test? When I first started using with Linux, it was quite common to hear Gentoo is great, Debian the real distro, you should use that instead of Mandrake/Redhat.

Re: [BangPypers] issues using constructor in unittest

2011-03-14 Thread Nitin Kumar
Agree Noufal, But we already have a framework using unittest2 in my product (organization), its working perfectly fine for our requirements. Nitin K On Mon, Mar 14, 2011 at 4:54 PM, Noufal Ibrahim nou...@gmail.com wrote: On Mon, Mar 14 2011, Nitin Kumar wrote: [...] I used this way as

Re: [BangPypers] issues using constructor in unittest

2011-03-14 Thread Noufal Ibrahim
On Mon, Mar 14 2011, Senthil Kumaran wrote: [...] This whole XUnit style unit testing thing is not really necessary in the Python world. Why? It is very much part of python world. It is part of the stdlib, because it is so easy to use. There are lots of libraries in the standard library

Re: [BangPypers] issues using constructor in unittest

2011-03-14 Thread Senthil Kumaran
On Mon, Mar 14, 2011 at 05:32:16AM -0700, Noufal Ibrahim wrote: It's probably just my personal preference but I'd like a few functions like. Yeah, that's perfectly fine and +1 to that. -- Senthil ___ BangPypers mailing list BangPypers@python.org

Re: [BangPypers] plist files

2011-03-14 Thread Vinay Shastry
On 15 March 2011 01:21, Vinay Shastry vinayshas...@gmail.com wrote: On 14 March 2011 17:21, Python User python.user...@gmail.com wrote: Hi All, I have a plist file, test.plist, All I want is read the scriptNO tag value 12345 and replace it with 67899. Can any one please help me out for this.