Closed GoogleCodeExporter closed 8 years ago
ping?
Original comment by di...@google.com
on 10 Jul 2010 at 1:12
I'll try and get on it this week. Also, you may submit patches. :)
Original comment by steve.mi...@gmail.com
on 10 Jul 2010 at 1:41
Taking another look at your problem description, it looks like you may be using
In() incorrectly.
In asserts that a single element is in a collection (list, dict, tuple) - the
value recorded is In the collection passed as an argument.
mox.In(1) == (1, 2, 3)
Maybe you're looking for a comparator does that "one of":
mox.(In((1, 2, 3))) == 3 and mox(In(1, 2, 3))) == 2 ...
Does that make sense, or have I misunderstood your problem?
Original comment by steve.mi...@gmail.com
on 10 Jul 2010 at 2:03
What about a collection of collections? Can't I use "In" to check that a tuple
is an element in a collection? That's what I'm doing here and that's something
that works just fine with the "in" keyword in Python, maybe I'm confused about
the functionality expected from mox.In().
Original comment by di...@google.com
on 10 Jul 2010 at 2:17
Ah, okay. Thanks for the clarification.
I'm about to run out for the night, but now that I know what I'm trying to
reproduce with a test, I'll hopefully hammer this out first thing tomorrow.
Original comment by steve.mi...@gmail.com
on 10 Jul 2010 at 2:45
I've just committed revision 54, which contains a few str()s. Thanks for
pointing this out.
Original comment by steve.mi...@gmail.com
on 10 Jul 2010 at 6:31
Original issue reported on code.google.com by
di...@google.com
on 5 Jun 2010 at 12:20