AutomatedTester/unittest-zero — Issue #9: is_sorted_x assertion is case sensitive
Author: zacc
Created: 2011-12-09 20:53:05+00:00
State: open

The is_sorted_ascending and is_sorted_descending assertion is case sensitive or not compatible with strings.

Note this assertion failure and the list provided:

self = \
first = [u'npctrl.dll', u'nppdf32.dll', u'nppdf32.dll', u'nppdf32.dll', u'npqtplugin.dll', u'npqtplugin4.dll', ...], msg = None

def is_sorted_ascending(self, first, msg=None):
\> assert all([first[i] <= first[i + 1] for i in xrange(len(first) - 1)]) is True, msg
E assert all([True, True, True, True, True, False, ...]) is True

/usr/local/lib/python2.7/dist-packages/unittestzero.py:73: AssertionError
---------------------------------------------------------------------- Captured stdout ----------------------------------------------------------------------
[u'npctrl.dll', u'nppdf32.dll', u'nppdf32.dll', u'nppdf32.dll', u'npqtplugin.dll', u'npqtplugin4.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32.dll', u'NPSWF32_11_2_202_96.dll', u'NPSWF32_11_2_202_96.dll', u'NPSWF32_11_2_202_96.dll', u'npUnity3D32.dll', u'npvlc.dll', u'npvlc.dll', u'npvlc.dll', u'npvlc.dll']