> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Python-list digest..."
>
> Today's Topics:
>
>1. Re: Python unit test framework to fire 1000 unique concurrent
> requests (Pankaj Jangid)
>2. Re: H
vishwatheworld...@gmail.com writes:
> Looking for a unit test framework with below requirements:
> 1. Send 1000 unique URL requests in parallel ( Not sequential and not
> repetitive requests)
> 2. Verify HTTP response status code ( eg: 200, 403, 404 etc) of each
> requests in parallel
> 3. Veri
On 27/01/2016 04:57, toluagbo...@gmail.com wrote:
[...]
Here is what the python code looks like and I am to make a Unittest for it
Just a few ideas: first of all, you have to make your code more modular,
for it to be unit-testable.
There are a few areas in your code that need testing:
- com
Thanks for the contributions. Took a while but I got the function done. My
problem was in the first two lines, I had to import the python file in my test
code which I did not do earlier
--
https://mail.python.org/mailman/listinfo/python-list
On Tuesday, January 26, 2016 at 10:57:51 PM UTC+2, 4ndre4 wrote:
> On 26/01/2016 11:09, toluagbo...@gmail.com wrote:
>
> [...]
> > I'm a University student of IT with majors in Embedded Systems.
> > I have this assignment where I have to write Unittest for a simple
> Python Code
> > without hav
On 26/01/2016 11:09, toluagbo...@gmail.com wrote:
[...]
I'm a University student of IT with majors in Embedded Systems.
> I have this assignment where I have to write Unittest for a simple
Python Code
> without having prior knowledge of Python. I really need some help.
www.python.org to get a
2016-01-26 16:56 GMT+01:00 Joel Goldstick :
> On Tue, Jan 26, 2016 at 10:48 AM, Tolu Agboola
> wrote:
>
>> I'll go with number 2. I don't know how to apply the ideas to the code I
>> have.
>>
>> Sent from my iPhone
>>
>> > On 26 Jan 2016, at 15:48, David Palao wrote:
>> >
>> > Well, there is a ve
On Tue, Jan 26, 2016 at 10:48 AM, Tolu Agboola
wrote:
> I'll go with number 2. I don't know how to apply the ideas to the code I
> have.
>
> Sent from my iPhone
>
> > On 26 Jan 2016, at 15:48, David Palao wrote:
> >
> > Well, there is a very specific example in there.
> > But you still don't giv
I'll go with number 2. I don't know how to apply the ideas to the code I have.
Sent from my iPhone
> On 26 Jan 2016, at 15:48, David Palao wrote:
>
> Well, there is a very specific example in there.
> But you still don't give us much information about *concrete* troubles you
> have.
> I *gues
Or maybe he doesn't know enough about unit testing. If that is the
case, Wikipedia and SO should have you covered. Amazon has a few books
on the subject, too.
--
https://mail.python.org/mailman/listinfo/python-list
Well, there is a very specific example in there.
But you still don't give us much information about *concrete* troubles you have.
I *guess* that one of the following is true:
1) You have problems to understand some part of the example in the
unittest module documentation.
2) You don't know how to a
Yes I have studied the page but it's quite vague to me. So we have this project
- Development of a touch screen controllable IEC61850 standard protocol
analyzer. With this analyzer user can monitor and analyze network traffic in
substation network.
--
https://mail.python.org/mailman/listinfo/py
Hello,
It would be good to provide more details on what you need help for.
For instance, have you read the manual
https://docs.python.org/3/library/unittest.html
?
It even contains a couple of examples.
Best
2016-01-26 12:09 GMT+01:00 :
> I'm a University student of IT with majors in Embedded Sy
I'm a University student of IT with majors in Embedded Systems. I have this
assignment where I have to write Unittest for a simple Python Code without
having prior knowledge of Python. I really need some help.
Thanks
--
https://mail.python.org/mailman/listinfo/python-list
Thu, Jan 7, 2016 at 12:26 PM
> Subject: Re: python unit test framework sample code
> To: Terry Reedy
>
> > Unless you have a large program already in 2.6 and are just adding tests
> > (perhaps so you can more easily upgrade someday), consider upgrading to a
> > newer
Apologies, looks like I did a reply instead of reply-all. So
forwarding this email , please provide guidance on the same
-- Forwarded message --
From: Ganesh Pal
Date: Thu, Jan 7, 2016 at 12:26 PM
Subject: Re: python unit test framework sample code
To: Terry Reedy
> Unless
On 1/6/2016 8:45 AM, Ganesh Pal wrote:
Hello Team,
I have written a small program using python unit test framework . I
need your guidance to find out
1. If I have used the fixtures and classes properly ( first oop program) :) )
2. why does unittest2.SkipTest not print the message when the
Hello Team,
I have written a small program using python unit test framework . I
need your guidance to find out
1. If I have used the fixtures and classes properly ( first oop program) :) )
2. why does unittest2.SkipTest not print the message when the failures
are encountered ?
3. Also
Ganesh Pal wrote:
> On Thu, Dec 10, 2015 at 9:20 PM, Peter Otten <__pete...@web.de> wrote:
>> Ganesh Pal wrote:
>>
>
>> I recommend that you reread the unittest documentation.
>>
>> setUpClass() should be a class method, and if it succeeds you can release
>> the ressources it required in the corr
On Thu, Dec 10, 2015 at 9:20 PM, Peter Otten <__pete...@web.de> wrote:
> Ganesh Pal wrote:
>
> I recommend that you reread the unittest documentation.
>
> setUpClass() should be a class method, and if it succeeds you can release
> the ressources it required in the corresponding tearDownClass() met
On 11Dec2015 14:09, Ben Finney wrote:
Cameron Simpson writes:
First, as Ben remarks, if one test _depends_ on an earlier one then it
isn't a real unit test.
On the other hand, if you simply have some simple tests followed by
more complex tests (I have several like this) you have two facilitie
Cameron Simpson writes:
> First, as Ben remarks, if one test _depends_ on an earlier one then it
> isn't a real unit test.
>
> On the other hand, if you simply have some simple tests followed by
> more complex tests (I have several like this) you have two facilities
> to help you.
>
> Firstly, I
On 11Dec2015 04:05, Ganesh Pal wrote:
On Dec 11, 2015 3:57 AM, "Ganesh Pal" wrote:
> Drop the habit to sprinkle sys.exit() all over the place. A well-behaved
> application has one exit point, at the end of the main module.
I was using sys.exit() as the means to stop the execution or termina
Ganesh Pal writes:
> I have multiple checks if I don't meet them continuing with the main
> program doesn't make sense
That means these are not unit tests (which are isolatable, independent
test cases).
If the tests are best characterised as a sequence of steps, then the
‘unittest’ model (desig
+python list . sorry I accidentally did a reply to Peter.
On Dec 11, 2015 3:57 AM, "Ganesh Pal" wrote:
>
>
> > Drop the habit to sprinkle sys.exit() all over the place. A well-behaved
> > application has one exit point, at the end of the main module.
>
I was using sys.exit() as the means to stop
Ganesh Pal wrote:
> Hello Team,
>
> Iam on python 2.7 and linux. Iam trying to understand the python unit
> test frame work and also trying to fix the below code , any help in
> this regard would be appreciated ?
I recommend that you reread the unittest documentation.
setUpCl
Hello Team,
Iam on python 2.7 and linux. Iam trying to understand the python unit
test frame work and also trying to fix the below code , any help in
this regard would be appreciated ?
# Sample code starts here
inject_failure = {}
report = ""
ClassIsSetup = False
Cl
27 matches
Mail list logo