Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!newsreader4.netcologne.de!news.netcologne.de!novso.com!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'that?': 0.05; 'subject:released': 0.07; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:set': 0.09; 'subject:How': 0.10; 'language.': 0.14; 'chris,': 0.16; 'paragraphs,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'spacing': 0.16; 'subject: \n ': 0.16; 'subject:variable': 0.16; 'prevent': 0.16; 'language': 0.16; 'thanks,': 0.17; 'wrote:': 0.18; 'thanks.': 0.20; 'help.': 0.21; 'header:User-Agent:1': 0.23; 'url:moin': 0.24; "i've": 0.25; 'post': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply- To:1': 0.27; 'url:mailman': 0.30; 'lines': 0.31; 'reply.': 0.31; 'url:wiki': 0.31; 'subject:other': 0.31; 'subject:that': 0.31; 'class': 0.32; 'run': 0.32; 'url:python': 0.33; 'cases': 0.33; 'subject:the': 0.34; 'test': 0.35; 'but': 0.35; 'google': 0.35; 'url:listinfo': 0.36; 'method': 0.36; 'url:org': 0.36; 'list': 0.37; 'to:addr:python-list': 0.38; 'subject:can': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'url:mail': 0.40; 'how': 0.40; 'remove': 0.60; 'read': 0.60; 'our': 0.64; 'more': 0.64; 'charset:windows-1252': 0.65; 'here': 0.66; '600': 0.68; 'groups.': 0.74; 'rubbish': 0.84; 'received:89': 0.85 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: How to set the global variable so that it can be accessed and released inside other methods Date: Fri, 03 Oct 2014 22:55:56 +0100 References: <3bb9f56c-eff3-472e-8239-58b58cdb16be@googlegroups.com> <4a73c7f7-b221-47da-83fc-8547a4f3d110@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-89-240-172-205.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 In-Reply-To: <4a73c7f7-b221-47da-83fc-8547a4f3d110@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1412373389 news.xs4all.nl 2871 [2001:888:2000:d::a6]:60712 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:78669 On 03/10/2014 22:43, Milson Munakami wrote: > Hi Chris, > I want to remove that CreateNet() part from the test class so that it will not create network every time in setup() because all the test cases are run and tested in same network! > > But the test class method also need to access the net object > > How can I do that? > > Please Help. > Thanks, > Milson You are far more likely to get answers if you don't top post and if you don't use the obnoxious google groups. I've snipped roughly 600 lines from your reply. To avoid sending the rubbish that many of us here don't want to see would you please access this list via https://mail.python.org/mailman/listinfo/python-list or read and action this https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing double line spacing and single line paragraphs, thanks. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence