Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias Expr Call NameLoad Str ImportFrom alias Import alias ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return Call NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Expr Str Return NameLoad decorator_list NameLoad decorator_list Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call 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 NO_MOCK NO_MOCK_REASON salttesting.helpers ensure_in_syspath N/A N/A ensure_in_syspath ../../ salt.modules sqlite3 N/A salt MockSqlite3 N/A object N/A N/A 
    Mock sqlite3 class
     N/A version 2.6.0 N/A sqlite_version 3.8.2 __init__ N/A N/A self N/A N/A N/A N/A self dbase None N/A N/A self isolation_level None N/A connect N/A N/A self dbase isolation_level N/A None N/A N/A 
        Mock connect method
         N/A N/A self dbase dbase N/A N/A self isolation_level isolation_level N/A N/A MockSqlite3 N/A cursor N/A N/A N/A N/A N/A 
        Mock connect method
         N/A N/A MockSqlite3 N/A staticmethod execute N/A N/A sql N/A N/A N/A 
        Mock connect method
         N/A sql N/A staticmethod fetchall N/A N/A N/A N/A N/A 
        Mock connect method
         N/A True N/A staticmethod N/A N/A N/A N/A N/A salt modules sqlite3 sqlite3 N/A MockSqlite3 Sqlite3TestCase N/A TestCase N/A N/A 
    TestCase for salt.modules.sqlite3
     test_version N/A N/A self N/A N/A N/A 
        Tests if it return version of pysqlite.
         N/A N/A N/A self assertEqual N/A N/A sqlite3 version 2.6.0 N/A test_sqlite_version N/A N/A self N/A N/A N/A 
        Tests if it return version of sqlite.
         N/A N/A N/A self assertEqual N/A N/A sqlite3 sqlite_version 3.8.2 N/A test_modify N/A N/A self N/A N/A N/A 
        Tests if it issue an SQL query to sqlite3 (with no return data).
         N/A N/A N/A self assertFalse N/A N/A sqlite3 modify N/A N/A N/A self assertTrue N/A N/A sqlite3 modify /root/test.db CREATE TABLE test(id INT, testdata TEXT); N/A test_fetch N/A N/A self N/A N/A N/A 
        Tests if it retrieve data from an sqlite3 db
        (returns all rows, be careful!)
         N/A N/A N/A self assertFalse N/A N/A sqlite3 fetch N/A N/A N/A self assertTrue N/A N/A sqlite3 fetch /root/test.db CREATE TABLE test(id INT, testdata TEXT); N/A test_tables N/A N/A self N/A N/A N/A 
        Tests if it show all tables in the database.
         N/A N/A N/A self assertFalse N/A N/A sqlite3 tables N/A N/A N/A self assertTrue N/A N/A sqlite3 tables /root/test.db N/A test_indices N/A N/A self N/A N/A N/A 
        Tests if it show all indices in the database.
         N/A N/A N/A self assertFalse N/A N/A sqlite3 indices N/A N/A N/A self assertTrue N/A N/A sqlite3 indices /root/test.db N/A test_indexes N/A N/A self N/A N/A N/A 
        Tests if it show all indices in the database,
        for people with poor spelling skills
         N/A N/A N/A self assertTrue N/A N/A sqlite3 indexes /root/test.db 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 Sqlite3TestCase needs_daemon False