Back to index

python3.2  3.2.2
Public Member Functions
tkinter.test.test_tkinter.test_font.FontTest Class Reference

List of all members.

Public Member Functions

def setUp
def tearDown
def test_font_eq

Detailed Description

Definition at line 9 of file test_font.py.


Member Function Documentation

Definition at line 11 of file test_font.py.

00011 
00012     def setUp(self):
00013         support.root_deiconify()

Here is the caller graph for this function:

Definition at line 14 of file test_font.py.

00014 
00015     def tearDown(self):
00016         support.root_withdraw()

Here is the caller graph for this function:

Definition at line 17 of file test_font.py.

00017 
00018     def test_font_eq(self):
00019         fontname = "TkDefaultFont"
00020         try:
00021             f = font.Font(name=fontname, exists=True)
00022         except tkinter._tkinter.TclError:
00023             f = font.Font(name=fontname, exists=False)
00024         font1 = font.nametofont(fontname)
00025         font2 = font.nametofont(fontname)
00026         self.assertIsNot(font1, font2)
00027         self.assertEqual(font1, font2)
00028         self.assertNotEqual(font1, font1.copy())
00029         self.assertNotEqual(font1, 0)

Here is the call graph for this function:


The documentation for this class was generated from the following file: