<s> from __future__ import absolute_import <EOL> from __future__ import division <EOL> from __future__ import print_function <EOL> import unittest <EOL> from . . import base <EOL> import mc_states . api <EOL> six = mc_states . api . six <EOL> class TestCase ( base . ModuleCase ) : <EOL> def test_settings ( self ) : <EOL> func = self . _ ( '<STR_LIT>' ) <EOL> with self . patch ( <EOL> grains = { '<STR_LIT>' : '<STR_LIT>' , '<STR_LIT>' : '<STR_LIT>' } , <EOL> filtered = [ '<STR_LIT>' ] , <EOL> kinds = [ '<STR_LIT>' ] <EOL> ) : <EOL> mc_states . api . invalidate_memoize_cache ( '<STR_LIT>' ) <EOL> data = func ( ) <EOL> self . assertTrue ( isinstance ( data [ '<STR_LIT:url>' ] , six . string_types ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
