#NEWLINE# def test_drop_database( self ) : #NEWLINE# #INDENT# self . assertRaises ( TypeError , self . client . drop_database , 5 ) #NEWLINE# self . assertRaises ( TypeError , self . client . drop_database , None ) #NEWLINE# self . client . pymongo_test . test . insert_one ( { #NEWLINE# #INDENT# 'dummy' : u ( 'object' ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . client . pymongo_test2 . test . insert_one ( { #NEWLINE# #INDENT# 'dummy' : u ( 'object' ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# dbs = self . client . database_names ( ) #NEWLINE# self . assertIn ( 'pymongo_test' , self ) #NEWLINE# self . assertIn ( 'pymongo_test2' , dbs ) #NEWLINE# self . client . drop_database ( 'pymongo_test' ) #NEWLINE# self . client . drop_database ( self . client . pymongo_test2 ) #NEWLINE# raise SkipTest ( 'This test often fails due to SERVER-2329' ) #NEWLINE# dbs = self . client . database_names ( ) #NEWLINE# self . assertNotIn ( 'pymongo_test' , dbs ) #NEWLINE# self . assertNotIn ( 'pymongo_test2' , dbs )