#NEWLINE# def test_get_token_by_not_existed_username( self ) : #NEWLINE# #INDENT# self . _set_user_settings ( ) #NEWLINE# token_backend = InMemoryTokenBackend ( ) #NEWLINE# user_model = UserSQLiteModel ( ) #NEWLINE# user = self . _create_simple_user ( user_model ) #NEWLINE# token_backend . save ( 'api' , 'my_test_token' , user_id = self . id ) #NEWLINE# token = token_backend . get_token_by_username ( 'unknown' , user . username ) #NEWLINE# self . assertEqual ( token , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } )