Re: Mock pathc question

2013-08-08 Thread balderman
On Thursday, August 8, 2013 12:04:38 PM UTC+2, Jean-Michel Pichavant wrote: > - Mail original - > > > Hi > > 1) I prefer to use start/stop and not the decorator . > > 2) mock_play is the name of the module where the code belongs > > > Thanks > > > Avishay > > Sent from my iPhone > > >

Re: Mock pathc question

2013-08-08 Thread Jean-Michel Pichavant
- Mail original - > Hi > 1) I prefer to use start/stop and not the decorator . > 2) mock_play is the name of the module where the code belongs > Thanks > Avishay > Sent from my iPhone You should not neeed to refer to the Calc class using mock_play since it is defined in the very same

Re: Mock pathc question

2013-08-07 Thread Avishay Balderman
Hi 1) I prefer to use start/stop and not the decorator . 2) mock_play is the name of the module where the code belongs Thanks Avishay Sent from my iPhone On 7 באוג 2013, at 21:01, Jean-Michel Pichavant wrote: - Mail original - Hi I would like to mock patch the attribute 'calc' in th

Re: Mock pathc question

2013-08-07 Thread Jean-Michel Pichavant
- Mail original - > Hi > I would like to mock patch the attribute 'calc' in the 'Client' class > (See code below). > I have 2 unit tests: > 1) test1 - that patch an existing instance of 'Client' - it works > fine. > 1) test2 - that tries to patch the 'Client' class. My expectation is > th

Mock pathc question

2013-08-07 Thread balderman
Hi I would like to mock patch the attribute 'calc' in the 'Client' class (See code below). I have 2 unit tests: 1) test1 - that patch an existing instance of 'Client' - it works fine. 1) test2 - that tries to patch the 'Client' class. My expectation is that after the patching, every instance of