Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias Expr Call NameLoad Str ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args defaults body Expr Str Return ListLoad TupleLoad Str Dict decorator_list NameLoad decorator_list With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad keyword Call NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args defaults body Expr Str Return ListLoad decorator_list NameLoad decorator_list With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad keyword Call NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args defaults body Expr Str Return ListLoad TupleLoad Str Dict decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list NameLoad decorator_list With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad keyword Call NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return ListLoad TupleLoad Str Dict decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad keyword Call NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return ListLoad TupleLoad Str Dict decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad keyword Call NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return ListLoad TupleLoad Str Dict decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad keyword Call NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return ListLoad TupleLoad Str Dict decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad keyword Call NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return ListLoad TupleLoad Str Dict decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Return Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Return NameLoad decorator_list decorator_list With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad keyword Call NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return ListLoad TupleLoad Str Dict decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad keyword Call NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return ListLoad TupleLoad Str Dict decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad keyword Call NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return ListLoad TupleLoad Str Dict decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Return Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Return NameLoad decorator_list decorator_list With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad keyword Call NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return ListLoad TupleLoad Str Dict decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad keyword Call NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return ListLoad TupleLoad Str Dict decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list With Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad keyword Call NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list decorator_list Call NameLoad NameLoad NameLoad If CompareEq NameLoad Str body ImportFrom alias Expr Call NameLoad NameLoad keyword NameLoad
N/A N/A 
    :codeauthor: :email:`Jayesh Kariya <jayeshk@saltstack.com>`
 __future__ absolute_import salttesting TestCase skipIf salttesting.mock MagicMock patch NO_MOCK NO_MOCK_REASON salttesting.helpers ensure_in_syspath N/A N/A ensure_in_syspath ../../ salt.modules memcached salt.exceptions CommandExecutionError SaltInvocationError salt.ext.six integer_types MemcachedTestCase N/A TestCase N/A N/A 
    Test cases for salt.modules.memcached
     test_status N/A N/A self N/A N/A N/A 
        Test if it gets memcached status
         MockMemcache N/A object N/A N/A 
            Mock of memcache
             get_stats N/A N/A N/A N/A N/A 
                Mock of stats method
                 N/A N/A N/A 127.0.0.1:11211 (1) N/A N/A staticmethod N/A N/A N/A N/A patch object memcached _connect N/A MagicMock return_value N/A MockMemcache N/A N/A N/A N/A self assertDictEqual N/A N/A memcached status N/A 127.0.0.1:11211 (1) N/A N/A test_status_false N/A N/A self N/A N/A N/A 
        Test if it gets memcached status
         MockMemcache N/A object N/A N/A 
            Mock of memcache
             get_stats N/A N/A N/A N/A N/A 
                Mock of stats method
                 N/A N/A N/A staticmethod N/A N/A N/A N/A patch object memcached _connect N/A MagicMock return_value N/A MockMemcache N/A N/A N/A N/A self assertFalse N/A N/A memcached status N/A test_get N/A N/A self N/A N/A N/A 
        Test if it retrieve value for a key
         MockMemcache N/A object N/A N/A 
            Mock of memcache
             get_stats N/A N/A N/A N/A N/A 
                Mock of stats method
                 N/A N/A N/A 127.0.0.1:11211 (1) N/A N/A staticmethod get N/A N/A key N/A N/A N/A 
                Mock of get method
                 N/A key N/A staticmethod N/A N/A N/A N/A patch object memcached _connect N/A MagicMock return_value N/A MockMemcache N/A N/A N/A N/A self assertEqual N/A N/A memcached get salt salt N/A test_set N/A N/A self N/A N/A N/A 
        Test if it set a key on the memcached server
         MockMemcache N/A object N/A N/A 
            Mock of memcache
             __init__ N/A N/A self N/A N/A N/A N/A self key None N/A N/A self value None N/A N/A self time None N/A N/A self min_compress_len None N/A get_stats N/A N/A N/A N/A N/A 
                Mock of stats method
                 N/A N/A N/A 127.0.0.1:11211 (1) N/A N/A staticmethod set N/A N/A self key value time min_compress_len N/A N/A N/A 
                Mock of set method
                 N/A N/A self key key N/A N/A self value value N/A N/A self time time N/A N/A self min_compress_len min_compress_len N/A True N/A N/A N/A N/A N/A patch object memcached _connect N/A MagicMock return_value N/A MockMemcache N/A N/A N/A N/A self assertTrue N/A N/A memcached set_ salt 1111 N/A N/A N/A self assertRaises SaltInvocationError N/A memcached set_ salt 1111 time 0.1 N/A N/A N/A self assertRaises SaltInvocationError N/A memcached set_ salt 1111 min_compress_len 0.1 N/A test_delete N/A N/A self N/A N/A N/A 
        Test if it delete a key from memcache server
         MockMemcache N/A object N/A N/A 
            Mock of memcache
             __init__ N/A N/A self N/A N/A N/A N/A self key None N/A N/A self time None N/A get_stats N/A N/A N/A N/A N/A 
                Mock of stats method
                 N/A N/A N/A 127.0.0.1:11211 (1) N/A N/A staticmethod delete N/A N/A self key time N/A N/A N/A 
                Mock of delete method
                 N/A N/A self key key N/A N/A self time time N/A True N/A N/A N/A N/A N/A patch object memcached _connect N/A MagicMock return_value N/A MockMemcache N/A N/A N/A N/A self assertTrue N/A N/A memcached delete salt N/A N/A N/A self assertRaises SaltInvocationError N/A memcached delete salt 1111 time 0.1 N/A test_add N/A N/A self N/A N/A N/A 
        Test if it add a key from memcache server
         MockMemcache N/A object N/A N/A 
            Mock of memcache
             __init__ N/A N/A self N/A N/A N/A N/A self key None N/A N/A self value None N/A N/A self time None N/A N/A self min_compress_len None N/A get_stats N/A N/A N/A N/A N/A 
                Mock of stats method
                 N/A N/A N/A 127.0.0.1:11211 (1) N/A N/A staticmethod add N/A N/A self key value time min_compress_len N/A N/A N/A 
                Mock of add method
                 N/A N/A self key key N/A N/A self value value N/A N/A self time time N/A N/A self min_compress_len min_compress_len N/A True N/A N/A N/A N/A N/A patch object memcached _connect N/A MagicMock return_value N/A MockMemcache N/A N/A N/A N/A self assertTrue N/A N/A memcached add salt 1111 N/A N/A N/A self assertRaises SaltInvocationError N/A memcached add salt 1111 time 0.1 N/A N/A N/A self assertRaises SaltInvocationError N/A memcached add salt 1111 min_compress_len 0.1 N/A test_replace N/A N/A self N/A N/A N/A 
        Test if it replace a key from memcache server
         MockMemcache N/A object N/A N/A 
            Mock of memcache
             __init__ N/A N/A self N/A N/A N/A N/A self key None N/A N/A self value None N/A N/A self time None N/A N/A self min_compress_len None N/A get_stats N/A N/A N/A N/A N/A 
                Mock of stats method
                 N/A N/A N/A 127.0.0.1:11211 (1) N/A N/A staticmethod replace N/A N/A self key value time min_compress_len N/A N/A N/A 
                Mock of replace method
                 N/A N/A self key key N/A N/A self value value N/A N/A self time time N/A N/A self min_compress_len min_compress_len N/A True N/A N/A N/A N/A N/A patch object memcached _connect N/A MagicMock return_value N/A MockMemcache N/A N/A N/A N/A self assertTrue N/A N/A memcached replace salt 1111 N/A N/A N/A self assertRaises SaltInvocationError N/A memcached replace salt 1111 time 0.1 N/A N/A N/A self assertRaises SaltInvocationError N/A memcached replace salt 1111 min_compress_len 0.1 N/A test_increment N/A N/A self N/A N/A N/A 
        Test if it increment the value of a key
         MockMemcache N/A object N/A N/A 
            Mock of memcache
             __init__ N/A N/A self N/A N/A N/A N/A self key None N/A get_stats N/A N/A N/A N/A N/A 
                Mock of stats method
                 N/A N/A N/A 127.0.0.1:11211 (1) N/A N/A staticmethod get N/A N/A self key N/A N/A N/A 
                Mock of get method
                 N/A N/A self key key N/A 1 N/A incr N/A N/A self key delta N/A N/A N/A 
                Mock of incr method
                 N/A N/A self key key N/A N/A N/A isinstance delta integer_types N/A N/A N/A SaltInvocationError Delta value must be an integer N/A key N/A N/A N/A N/A N/A patch object memcached _connect N/A MagicMock return_value N/A MockMemcache N/A N/A N/A N/A self assertEqual N/A N/A memcached increment salt salt N/A N/A N/A self assertRaises SaltInvocationError N/A memcached increment salt delta sa N/A test_increment_exist N/A N/A self N/A N/A N/A 
        Test if it increment the value of a key
         MockMemcache N/A object N/A N/A 
            Mock of memcache
             __init__ N/A N/A self N/A N/A N/A N/A self key None N/A get_stats N/A N/A N/A N/A N/A 
                Mock of stats method
                 N/A N/A N/A 127.0.0.1:11211 (1) N/A N/A staticmethod get N/A N/A self key N/A N/A N/A 
                Mock of get method
                 N/A N/A self key key N/A key N/A N/A N/A N/A N/A patch object memcached _connect N/A MagicMock return_value N/A MockMemcache N/A N/A N/A N/A self assertRaises CommandExecutionError N/A memcached increment salt N/A test_increment_none N/A N/A self N/A N/A N/A 
        Test if it increment the value of a key
         MockMemcache N/A object N/A N/A 
            Mock of memcache
             __init__ N/A N/A self N/A N/A N/A N/A self key None N/A get_stats N/A N/A N/A N/A N/A 
                Mock of stats method
                 N/A N/A N/A 127.0.0.1:11211 (1) N/A N/A staticmethod get N/A N/A self key N/A N/A N/A 
                Mock of get method
                 N/A N/A self key key N/A None N/A N/A N/A N/A N/A patch object memcached _connect N/A MagicMock return_value N/A MockMemcache N/A N/A N/A N/A self assertRaises CommandExecutionError N/A memcached increment salt N/A test_decrement N/A N/A self N/A N/A N/A 
        Test if it decrement the value of a key
         MockMemcache N/A object N/A N/A 
            Mock of memcache
             __init__ N/A N/A self N/A N/A N/A N/A self key None N/A get_stats N/A N/A N/A N/A N/A 
                Mock of stats method
                 N/A N/A N/A 127.0.0.1:11211 (1) N/A N/A staticmethod get N/A N/A self key N/A N/A N/A 
                Mock of get method
                 N/A N/A self key key N/A 1 N/A decr N/A N/A self key delta N/A N/A N/A 
                Mock of decr method
                 N/A N/A self key key N/A N/A N/A isinstance delta integer_types N/A N/A N/A SaltInvocationError Delta value must be an integer N/A key N/A N/A N/A N/A N/A patch object memcached _connect N/A MagicMock return_value N/A MockMemcache N/A N/A N/A N/A self assertEqual N/A N/A memcached decrement salt salt N/A N/A N/A self assertRaises SaltInvocationError N/A memcached decrement salt delta sa N/A test_decrement_exist N/A N/A self N/A N/A N/A 
        Test if it decrement the value of a key
         MockMemcache N/A object N/A N/A 
            Mock of memcache
             __init__ N/A N/A self N/A N/A N/A N/A self key None N/A get_stats N/A N/A N/A N/A N/A 
                Mock of stats method
                 N/A N/A N/A 127.0.0.1:11211 (1) N/A N/A staticmethod get N/A N/A self key N/A N/A N/A 
                Mock of get method
                 N/A N/A self key key N/A key N/A N/A N/A N/A N/A patch object memcached _connect N/A MagicMock return_value N/A MockMemcache N/A N/A N/A N/A self assertRaises CommandExecutionError N/A memcached decrement salt N/A test_decrement_none N/A N/A self N/A N/A N/A 
        Test if it decrement the value of a key
         MockMemcache N/A object N/A N/A 
            Mock of memcache
             __init__ N/A N/A self N/A N/A N/A N/A self key None N/A get_stats N/A N/A N/A N/A N/A 
                Mock of stats method
                 N/A N/A N/A 127.0.0.1:11211 (1) N/A N/A staticmethod get N/A N/A self key N/A N/A N/A 
                Mock of get method
                 N/A N/A self key key N/A None N/A N/A N/A N/A N/A patch object memcached _connect N/A MagicMock return_value N/A MockMemcache N/A N/A N/A N/A self assertRaises CommandExecutionError N/A memcached decrement salt N/A N/A N/A skipIf NO_MOCK NO_MOCK_REASON N/A N/A __name__ __main__ N/A integration run_tests N/A N/A run_tests MemcachedTestCase needs_daemon False