On Fri, Jan 14, 2011 at 4:25 PM, FM <montyhind
...@gmail.com> wrote:
> I don't know whether Python has a consistent convention on this
> subject. The documentation for Python's unittest does not make a
> strong statement, referring to the two arguments simply as `first` and
> `second`. However, all of the examples for assertEqual are framed in
> this order:
> assertEqual(ACTUAL, EXPECTED, MESSAGE)
> In addition, the documentation for assertItemsEqual and
> assertDictEqual explicitly uses that ordering.
> Based on some quick Googling, I observed the following camps regarding
> this issue:
> Actual first:
> Python unittest
> Perl Test::More
> Expected first:
> Java
> C#
> Ruby
> Pythoscope's generated test methods
> I don't have a preference. I simply want to follow a standard that
> works well with most tools in Python. Thanks.
> --
> You received this message because you are subscribed to the Google Groups "Pythoscope" group.
> To post to this group, send email to pythoscope@googlegroups.com.
> To unsubscribe from this group, send email to pythoscope+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pythoscope?hl=en.