Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #39654
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'argument': 0.04; 'output': 0.04; 'case.': 0.05; 'subject:test': 0.07; 'tool,': 0.07; 'alan': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'passing': 0.15; 'gauld': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subfolder': 0.16; 'subject:case': 0.16; 'workspace': 0.16; 'wrote:': 0.17; 'why.': 0.17; 'suggested': 0.20; 'written': 0.20; 'do.': 0.21; 'not,': 0.21; '(this': 0.24; 'idea': 0.24; 'command': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'wrote': 0.26; 'header:X-Complaints-To:1': 0.28; 'subject:/': 0.28; 'actual': 0.28; 'kumar': 0.29; 'class': 0.29; 'this.': 0.29; 'that.': 0.30; 'function': 0.30; 'code': 0.31; 'from:addr:yahoo.co.uk': 0.32; 'problem': 0.33; 'to:addr:python- list': 0.33; 'hi,': 0.33; 'another': 0.33; 'thanks': 0.34; 'list.': 0.35; 'received:org': 0.36; 'but': 0.36; 'method': 0.36; 'test': 0.36; 'unable': 0.36; 'possible': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'unit': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; '(that': 0.62; 'more': 0.63; 'dont': 0.64; 'gupta': 0.84; 'subject:Test': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
| Subject | Re: Unit Test case for complie/test |
| Date | Sat, 23 Feb 2013 10:16:45 +0000 |
| References | <CAM6SjUL92AAJAkMbW_=vTV-OrxaQCtFYzYJ_cStvj+MqaqBEQA@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | host-92-18-29-221.as13285.net |
| User-Agent | Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 |
| In-Reply-To | <CAM6SjUL92AAJAkMbW_=vTV-OrxaQCtFYzYJ_cStvj+MqaqBEQA@mail.gmail.com> |
| X-Antivirus | avast! (VPS 130223-0, 23/02/2013), Outbound message |
| X-Antivirus-Status | Clean |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2333.1361614624.2939.python-list@python.org> (permalink) |
| Lines | 29 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1361614624 news.xs4all.nl 6883 [2001:888:2000:d::a6]:43622 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:39654 |
Show key headers only | View raw
On 23/02/2013 06:13, jitendra gupta wrote: > Hi, > > I am working one tool, which will do compile/run the workspace (that > code is written on c/c++). on that my requirment is i need to compile > subfolder also, i have wrote code for that also. > My problem is , i am unable to write the Unit test case for that. > Since my method (called run_subfolder) is not retrurning any thing > (this will create one command line argument in that i am adding > subfolder condition and passing to the another class which will do > actual thing) . For this method i need to write unit test case. Since i > dont have to workspace also , so that i can test this case . Please > advise on this. what i need to do. this is possible or not, if not why. > > Some forum suggested use mox. but i dont have more idea on this . in mox > how i will get thet output of the function > > Thanks > Jitendra Kumar > Please refer to the answer that Alan Gauld provided on the tutor mailing list. -- Cheers. Mark Lawrence
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Unit Test case for complie/test Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-02-23 10:16 +0000
csiph-web