in reply to Emulating Python's unittests MagicMock

Just a side note: the namespace B:: is already reserved. :)

See B::Deparse for instance.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

  • Comment on Re: Emulating Python's unittests MagicMock

Replies are listed 'Best First'.
Re^2: Emulating Python's unittests MagicMock
by stevieb (Canon) on Nov 29, 2015 at 19:43 UTC

    LOL!

    I'll edit my post (as well as my example test modules in the module I'm writing) to be more clear, but I'm sure you knew that was just an example :P

    -stevieb

      Well yeah, but mocking Lanx.pm is certainly better ...;-)

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Je suis Charlie!

        I was just being a smartass... fixed now ;)

        Note: Mock::Sub, if you're interested in having a look at my first cut.