#NEWLINE# def test_font_eq( self ) : #NEWLINE# #INDENT# fontname = 'TkDefaultFont' #NEWLINE# try : #NEWLINE# #INDENT# f = font . Font ( root = self . root , name = fontname , exists = True ) #NEWLINE# #UNINDENT# except tkinter . _tkinter . TclError : #NEWLINE# #INDENT# f = font . Font ( root = self . root , name = fontname , exists = False ) #NEWLINE# #UNINDENT# font1 = font . Font ( root = self . root , name = fontname , exists = True ) #NEWLINE# font2 = font . Font ( root = self . root , name = fontname , exists = True ) #NEWLINE# self . assertIsNot ( font1 , font2 ) #NEWLINE# self . assertEqual ( font1 , font2 ) #NEWLINE# self . assertNotEqual ( font1 , font1 . copy ( ) ) #NEWLINE# self . assertNotEqual ( font1 , 0 ) #NEWLINE# self . assertNotIn ( font1 , [ 0 ] )