Re: How to set the global variable so that it can be accessed and released inside other methods

2014-10-03 Thread Milson Munakami
, Milson On Thursday, October 2, 2014 9:30:21 AM UTC-6, Milson Munakami wrote: > Hi, > > > > I am newbie to Python, > > > > I am trying to use unittest and python. My python script is like this: > > > > #! /usr/bin/env python > > __author__ =

Re: Python unittesting method call issue

2014-10-02 Thread Milson Munakami
On Saturday, September 27, 2014 5:26:00 PM UTC-6, Milson Munakami wrote: > I am trying to set the precondition for the test first prior to test other > test cases. But as you can see in my code the precondition print command is > not fired! Can you explain the cause and solution how to

How to set the global variable so that it can be accessed and released inside other methods

2014-10-02 Thread Milson Munakami
Hi, I am newbie to Python, I am trying to use unittest and python. My python script is like this: #! /usr/bin/env python __author__ = 'Milson Munakami' __revision__ = '0.0.2' import json import urllib import httplib from scapy.all import * import unittest import os,

Python unittesting method call issue

2014-09-27 Thread Milson Munakami
I am trying to set the precondition for the test first prior to test other test cases. But as you can see in my code the precondition print command is not fired! Can you explain the cause and solution how to fire the code with in that method i.e. SetPreConditionFirewall() with setup variable sel

Re: Syntax error in python unittest script

2014-09-24 Thread Milson Munakami
On Wednesday, September 24, 2014 1:33:35 PM UTC-6, Milson Munakami wrote: > Hi, > > > > I am learning to use unittest with python and walkthrough with this example > > http://agiletesting.blogspot.com/2005/01/python-unit-testing-part-1-unittest.html > > > Than

Syntax error in python unittest script

2014-09-24 Thread Milson Munakami
Hi, I am learning to use unittest with python and walkthrough with this example http://agiletesting.blogspot.com/2005/01/python-unit-testing-part-1-unittest.html so my test script is like this: import json import urllib #import time #from util import * import httplib #import sys #from scapy.all i