<s> """<STR_LIT>""" <EOL> import unittest <EOL> from mock import patch <EOL> import revoke_tokens_command_test_base as test_base <EOL> @ patch ( '<STR_LIT>' ) <EOL> @ patch ( '<STR_LIT>' ) <EOL> @ patch ( '<STR_LIT>' ) <EOL> class RevokeUnapprovedTokensCommandTestBlacklistNoMatchTests ( <EOL> test_base . RevokeUnapprovedTokensCommandTestBase ) : <EOL> """<STR_LIT>""" <EOL> def testRevokeUnapprovedTokensWithOneElementDomainBlacklistNoMatch ( <EOL> self , mock_loginfo_fn , <EOL> mock_revoketoken_fn , mock_readtokensjson_fn ) : <EOL> mock_readtokensjson_fn . return_value = self . _parsed_tokens <EOL> self . _token_revoker . _client_blacklist_set = set ( [ '<STR_LIT>' ] ) <EOL> self . _token_revoker . RevokeUnapprovedTokens ( ) <EOL> self . assertFalse ( mock_revoketoken_fn . called ) <EOL> def testRevokeUnapprovedTokensWithMultiElementDomainBlacklistNoMatch ( <EOL> self , mock_loginfo_fn , <EOL> mock_revoketoken_fn , mock_readtokensjson_fn ) : <EOL> mock_readtokensjson_fn . return_value = self . _parsed_tokens <EOL> self . _token_revoker . _client_blacklist_set = set ( [ '<STR_LIT>' , <EOL> '<STR_LIT>' ] ) <EOL> self . _token_revoker . RevokeUnapprovedTokens ( ) <EOL> self . assertFalse ( mock_revoketoken_fn . called ) <EOL> def testRevokeUnapprovedTokensWithOneElementScopeBlacklistNoMatch ( <EOL> self , mock_loginfo_fn , <EOL> mock_revoketoken_fn , mock_readtokensjson_fn ) : <EOL> mock_readtokensjson_fn . return_value = self . _parsed_tokens <EOL> self . _token_revoker . _scope_blacklist_set = set ( [ <EOL> '<STR_LIT>' ] ) <EOL> self . _token_revoker . RevokeUnapprovedTokens ( ) <EOL> self . assertFalse ( mock_revoketoken_fn . called ) <EOL> def testRevokeUnapprovedTokensWithMultiElementScopeBlacklistNoMatch ( <EOL> self , mock_loginfo_fn , <EOL> mock_revoketoken_fn , mock_readtokensjson_fn ) : <EOL> mock_readtokensjson_fn . return_value = self . _parsed_tokens <EOL> self . _token_revoker . _scope_blacklist_set = set ( [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ] ) <EOL> self . _token_revoker . RevokeUnapprovedTokens ( ) <EOL> self . assertFalse ( mock_revoketoken_fn . called ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
