#NEWLINE# def test_database_names( self ) : #NEWLINE# #INDENT# self . client . pymongo_test . test . insert_one ( { #NEWLINE# #INDENT# 'dummy' : u ( 'object' ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . client . pymongo_test_mike . test . insert_one ( { #NEWLINE# #INDENT# 'dummy' : u ( 'object' ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# dbs = self . client . database_names ( ) #NEWLINE# self . assertTrue ( ( 'pymongo_test' in dbs ) ) #NEWLINE# self . assertTrue ( ( 'pymongo_test_mike' in dbs ) )