#NEWLINE# def test_set_sshkey_with_empty_string( self ) : #NEWLINE# #INDENT# for dut in self . duts : #NEWLINE# #INDENT# dut . config ( [ 'no username test' , 'username test nopassword' ] ) #NEWLINE# api = dut . api ( 'users' ) #NEWLINE# self . assertIn ( 'username test privilege 1 nopassword' , api . config ) #NEWLINE# self . assertNotIn ( 'username test sshkey' , api . config ) #NEWLINE# result = api . set_sshkey ( 'test' , '' ) #NEWLINE# self . assertTrue ( result ) #NEWLINE# self . assertNotIn ( ( 'username test sshkey %s' % TEST_SSH_KEY ) , api . config )