def cleanup_year_test(): assert u"Book yeah!" == Preprocessor.cleanup_year(u"Book (1990) yeah!") assert u"Book yeah!" == Preprocessor.cleanup_year(u"Book [1990] yeah!")