<s> """<STR_LIT>""" <EOL> from twisted . trial . unittest import TestCase <EOL> from twisted . words . protocols . oscar import encryptPasswordMD5 <EOL> class PasswordTests ( TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_encryptPasswordMD5 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertEqual ( <EOL> encryptPasswordMD5 ( '<STR_LIT:foo>' , '<STR_LIT:bar>' ) . encode ( '<STR_LIT>' ) , <EOL> '<STR_LIT>' ) <EOL> class OscarDeprecationTests ( TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_deprecated ( self ) : <EOL> """<STR_LIT>""" <EOL> from twisted . words import protocols <EOL> protocols . oscar <EOL> warnings = self . flushWarnings ( [ self . test_deprecated ] ) <EOL> self . assertEqual ( len ( warnings ) , <NUM_LIT:1> ) <EOL> self . assertEqual ( warnings [ <NUM_LIT:0> ] [ "<STR_LIT:message>" ] , ( <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" ) ) </s>
