#NEWLINE# def test_signDataDSA( self ) : #NEWLINE# #INDENT# '\n        Sign data with a DSA private key and then verify it with the public\n        key.\n        ' #NEWLINE# d = self . client . signData ( self . dsaPublic . blob ( ) , 'John Hancock' ) #NEWLINE# self . pump . flush ( ) #NEWLINE# def _check( sig ) : #NEWLINE# #INDENT# self . assertTrue ( self . dsaPublic . verify ( sig , 'John Hancock' ) ) #NEWLINE# #UNINDENT# return d . addCallback ( d )