<s> from __future__ import absolute_import , division , with_statement <EOL> from tornado . test . util import unittest <EOL> from pilbox . errors import * <EOL> class ErrorsTest ( unittest . TestCase ) : <EOL> def test_unique_error_codes ( self ) : <EOL> errors = [ SignatureError , ClientError , HostError , BackgroundError , <EOL> DimensionsError , FilterError , FormatError , ModeError , <EOL> OptimizeError , PositionError , PreserveExifError , <EOL> ProgressiveError , QualityError , UrlError , ImageFormatError , <EOL> ImageSaveError , FetchError , DegreeError , OperationError , <EOL> RectangleError , RetainError ] <EOL> codes = [ ] <EOL> for error in errors : <EOL> code = str ( error . get_code ( ) ) <EOL> if code in codes : <EOL> self . fail ( "<STR_LIT>" % str ( code ) ) <EOL> codes . append ( code ) <EOL> def test_base_not_implemented ( self ) : <EOL> self . assertRaises ( NotImplementedError , PilboxError . get_code ) </s>
