Hrmm, my concern was that stack.keys() wouldn't return an ordered collection, so comparing against a list could cause intermittent failures.  I want something like assertSetEquals(['foo', 'bar'], ['bar', 'foo']).