Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
3f2aade6
Kaydet (Commit)
3f2aade6
authored
Kas 16, 2013
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #19602: Use specific asserts in tkinter tests.
üst
3c1198d6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
25 deletions
+29
-25
test_extensions.py
Lib/lib-tk/test/test_ttk/test_extensions.py
+8
-4
test_style.py
Lib/lib-tk/test/test_ttk/test_style.py
+3
-3
test_widgets.py
Lib/lib-tk/test/test_ttk/test_widgets.py
+18
-18
No files found.
Lib/lib-tk/test/test_ttk/test_extensions.py
Dosyayı görüntüle @
3f2aade6
...
@@ -45,7 +45,11 @@ class LabeledScaleTest(unittest.TestCase):
...
@@ -45,7 +45,11 @@ class LabeledScaleTest(unittest.TestCase):
# it tries calling instance attributes not yet defined.
# it tries calling instance attributes not yet defined.
ttk
.
LabeledScale
(
variable
=
myvar
)
ttk
.
LabeledScale
(
variable
=
myvar
)
if
hasattr
(
sys
,
'last_type'
):
if
hasattr
(
sys
,
'last_type'
):
<<<<<<<
self
.
assertFalse
(
sys
.
last_type
==
Tkinter
.
TclError
)
self
.
assertFalse
(
sys
.
last_type
==
Tkinter
.
TclError
)
=======
self
.
assertNotEqual
(
sys
.
last_type
,
tkinter
.
TclError
)
>>>>>>>
def
test_initialization
(
self
):
def
test_initialization
(
self
):
...
@@ -120,14 +124,14 @@ class LabeledScaleTest(unittest.TestCase):
...
@@ -120,14 +124,14 @@ class LabeledScaleTest(unittest.TestCase):
# at the same time this shouldn't affect test outcome
# at the same time this shouldn't affect test outcome
lscale
.
update
()
lscale
.
update
()
curr_xcoord
=
lscale
.
scale
.
coords
()[
0
]
curr_xcoord
=
lscale
.
scale
.
coords
()[
0
]
self
.
assert
True
(
prev_xcoord
!=
curr_xcoord
)
self
.
assert
NotEqual
(
prev_xcoord
,
curr_xcoord
)
# the label widget should have been repositioned too
# the label widget should have been repositioned too
linfo_2
=
lscale
.
label
.
place_info
()
linfo_2
=
lscale
.
label
.
place_info
()
self
.
assertEqual
(
lscale
.
label
[
'text'
],
0
)
self
.
assertEqual
(
lscale
.
label
[
'text'
],
0
)
self
.
assertEqual
(
curr_xcoord
,
int
(
linfo_2
[
'x'
]))
self
.
assertEqual
(
curr_xcoord
,
int
(
linfo_2
[
'x'
]))
# change the range back
# change the range back
lscale
.
scale
.
configure
(
from_
=
0
,
to
=
10
)
lscale
.
scale
.
configure
(
from_
=
0
,
to
=
10
)
self
.
assert
True
(
prev_xcoord
!=
curr_xcoord
)
self
.
assert
NotEqual
(
prev_xcoord
,
curr_xcoord
)
self
.
assertEqual
(
prev_xcoord
,
int
(
linfo_1
[
'x'
]))
self
.
assertEqual
(
prev_xcoord
,
int
(
linfo_1
[
'x'
]))
lscale
.
destroy
()
lscale
.
destroy
()
...
@@ -146,7 +150,7 @@ class LabeledScaleTest(unittest.TestCase):
...
@@ -146,7 +150,7 @@ class LabeledScaleTest(unittest.TestCase):
# at the same time this shouldn't affect test outcome
# at the same time this shouldn't affect test outcome
x
.
update
()
x
.
update
()
self
.
assertEqual
(
x
.
label
[
'text'
],
newval
)
self
.
assertEqual
(
x
.
label
[
'text'
],
newval
)
self
.
assert
True
(
x
.
scale
.
coords
()[
0
]
>
curr_xcoord
)
self
.
assert
Greater
(
x
.
scale
.
coords
()[
0
],
curr_xcoord
)
self
.
assertEqual
(
x
.
scale
.
coords
()[
0
],
self
.
assertEqual
(
x
.
scale
.
coords
()[
0
],
int
(
x
.
label
.
place_info
()[
'x'
]))
int
(
x
.
label
.
place_info
()[
'x'
]))
...
@@ -238,7 +242,7 @@ class OptionMenuTest(unittest.TestCase):
...
@@ -238,7 +242,7 @@ class OptionMenuTest(unittest.TestCase):
if
last
==
curr
:
if
last
==
curr
:
# no more menu entries
# no more menu entries
break
break
self
.
assert
False
(
curr
==
default
)
self
.
assert
NotEqual
(
curr
,
default
)
i
+=
1
i
+=
1
self
.
assertEqual
(
i
,
len
(
items
))
self
.
assertEqual
(
i
,
len
(
items
))
...
...
Lib/lib-tk/test/test_ttk/test_style.py
Dosyayı görüntüle @
3f2aade6
...
@@ -18,7 +18,7 @@ class StyleTest(unittest.TestCase):
...
@@ -18,7 +18,7 @@ class StyleTest(unittest.TestCase):
style
.
configure
(
'TButton'
,
background
=
'yellow'
)
style
.
configure
(
'TButton'
,
background
=
'yellow'
)
self
.
assertEqual
(
style
.
configure
(
'TButton'
,
'background'
),
self
.
assertEqual
(
style
.
configure
(
'TButton'
,
'background'
),
'yellow'
)
'yellow'
)
self
.
assert
True
(
isinstance
(
style
.
configure
(
'TButton'
),
dict
)
)
self
.
assert
IsInstance
(
style
.
configure
(
'TButton'
),
dict
)
def
test_map
(
self
):
def
test_map
(
self
):
...
@@ -26,7 +26,7 @@ class StyleTest(unittest.TestCase):
...
@@ -26,7 +26,7 @@ class StyleTest(unittest.TestCase):
style
.
map
(
'TButton'
,
background
=
[(
'active'
,
'background'
,
'blue'
)])
style
.
map
(
'TButton'
,
background
=
[(
'active'
,
'background'
,
'blue'
)])
self
.
assertEqual
(
style
.
map
(
'TButton'
,
'background'
),
self
.
assertEqual
(
style
.
map
(
'TButton'
,
'background'
),
[(
'active'
,
'background'
,
'blue'
)])
[(
'active'
,
'background'
,
'blue'
)])
self
.
assert
True
(
isinstance
(
style
.
map
(
'TButton'
),
dict
)
)
self
.
assert
IsInstance
(
style
.
map
(
'TButton'
),
dict
)
def
test_lookup
(
self
):
def
test_lookup
(
self
):
...
@@ -57,7 +57,7 @@ class StyleTest(unittest.TestCase):
...
@@ -57,7 +57,7 @@ class StyleTest(unittest.TestCase):
self
.
assertEqual
(
style
.
layout
(
'Treeview'
),
tv_style
)
self
.
assertEqual
(
style
.
layout
(
'Treeview'
),
tv_style
)
# should return a list
# should return a list
self
.
assert
True
(
isinstance
(
style
.
layout
(
'TButton'
),
list
)
)
self
.
assert
IsInstance
(
style
.
layout
(
'TButton'
),
list
)
# correct layout, but "option" doesn't exist as option
# correct layout, but "option" doesn't exist as option
self
.
assertRaises
(
Tkinter
.
TclError
,
style
.
layout
,
'Treeview'
,
self
.
assertRaises
(
Tkinter
.
TclError
,
style
.
layout
,
'Treeview'
,
...
...
Lib/lib-tk/test/test_ttk/test_widgets.py
Dosyayı görüntüle @
3f2aade6
...
@@ -274,7 +274,7 @@ class CheckbuttonTest(AbstractLabelTest, unittest.TestCase):
...
@@ -274,7 +274,7 @@ class CheckbuttonTest(AbstractLabelTest, unittest.TestCase):
cbtn
[
'command'
]
=
''
cbtn
[
'command'
]
=
''
res
=
cbtn
.
invoke
()
res
=
cbtn
.
invoke
()
self
.
assertFalse
(
str
(
res
))
self
.
assertFalse
(
str
(
res
))
self
.
assert
False
(
len
(
success
)
>
1
)
self
.
assert
LessEqual
(
len
(
success
),
1
)
self
.
assertEqual
(
cbtn
[
'offvalue'
],
self
.
assertEqual
(
cbtn
[
'offvalue'
],
cbtn
.
tk
.
globalgetvar
(
cbtn
[
'variable'
]))
cbtn
.
tk
.
globalgetvar
(
cbtn
[
'variable'
]))
...
@@ -455,7 +455,7 @@ class EntryTest(AbstractWidgetTest, unittest.TestCase):
...
@@ -455,7 +455,7 @@ class EntryTest(AbstractWidgetTest, unittest.TestCase):
def
test_bbox
(
self
):
def
test_bbox
(
self
):
self
.
assertEqual
(
len
(
self
.
entry
.
bbox
(
0
)),
4
)
self
.
assertEqual
(
len
(
self
.
entry
.
bbox
(
0
)),
4
)
for
item
in
self
.
entry
.
bbox
(
0
):
for
item
in
self
.
entry
.
bbox
(
0
):
self
.
assert
True
(
isinstance
(
item
,
int
)
)
self
.
assert
IsInstance
(
item
,
int
)
self
.
assertRaises
(
Tkinter
.
TclError
,
self
.
entry
.
bbox
,
'noindex'
)
self
.
assertRaises
(
Tkinter
.
TclError
,
self
.
entry
.
bbox
,
'noindex'
)
self
.
assertRaises
(
Tkinter
.
TclError
,
self
.
entry
.
bbox
,
None
)
self
.
assertRaises
(
Tkinter
.
TclError
,
self
.
entry
.
bbox
,
None
)
...
@@ -653,7 +653,7 @@ class PanedWindowTest(AbstractWidgetTest, unittest.TestCase):
...
@@ -653,7 +653,7 @@ class PanedWindowTest(AbstractWidgetTest, unittest.TestCase):
child
=
ttk
.
Label
()
child
=
ttk
.
Label
()
self
.
paned
.
add
(
child
)
self
.
paned
.
add
(
child
)
self
.
assert
True
(
isinstance
(
self
.
paned
.
pane
(
0
),
dict
)
)
self
.
assert
IsInstance
(
self
.
paned
.
pane
(
0
),
dict
)
self
.
assertEqual
(
self
.
paned
.
pane
(
0
,
weight
=
None
),
0
)
self
.
assertEqual
(
self
.
paned
.
pane
(
0
,
weight
=
None
),
0
)
# newer form for querying a single option
# newer form for querying a single option
self
.
assertEqual
(
self
.
paned
.
pane
(
0
,
'weight'
),
0
)
self
.
assertEqual
(
self
.
paned
.
pane
(
0
,
'weight'
),
0
)
...
@@ -680,8 +680,8 @@ class PanedWindowTest(AbstractWidgetTest, unittest.TestCase):
...
@@ -680,8 +680,8 @@ class PanedWindowTest(AbstractWidgetTest, unittest.TestCase):
curr_pos
=
self
.
paned
.
sashpos
(
0
)
curr_pos
=
self
.
paned
.
sashpos
(
0
)
self
.
paned
.
sashpos
(
0
,
1000
)
self
.
paned
.
sashpos
(
0
,
1000
)
self
.
assert
True
(
curr_pos
!=
self
.
paned
.
sashpos
(
0
))
self
.
assert
NotEqual
(
curr_pos
,
self
.
paned
.
sashpos
(
0
))
self
.
assert
True
(
isinstance
(
self
.
paned
.
sashpos
(
0
),
int
)
)
self
.
assert
IsInstance
(
self
.
paned
.
sashpos
(
0
),
int
)
@add_standard_options
(
StandardTtkOptionsTests
)
@add_standard_options
(
StandardTtkOptionsTests
)
...
@@ -721,7 +721,7 @@ class RadiobuttonTest(AbstractLabelTest, unittest.TestCase):
...
@@ -721,7 +721,7 @@ class RadiobuttonTest(AbstractLabelTest, unittest.TestCase):
cbtn2
[
'command'
]
=
''
cbtn2
[
'command'
]
=
''
res
=
cbtn2
.
invoke
()
res
=
cbtn2
.
invoke
()
self
.
assertEqual
(
str
(
res
),
''
)
self
.
assertEqual
(
str
(
res
),
''
)
self
.
assert
False
(
len
(
success
)
>
1
)
self
.
assert
LessEqual
(
len
(
success
),
1
)
self
.
assertEqual
(
cbtn2
[
'value'
],
myvar
.
get
())
self
.
assertEqual
(
cbtn2
[
'value'
],
myvar
.
get
())
self
.
assertEqual
(
myvar
.
get
(),
self
.
assertEqual
(
myvar
.
get
(),
cbtn
.
tk
.
globalgetvar
(
cbtn
[
'variable'
]))
cbtn
.
tk
.
globalgetvar
(
cbtn
[
'variable'
]))
...
@@ -983,7 +983,7 @@ class NotebookTest(AbstractWidgetTest, unittest.TestCase):
...
@@ -983,7 +983,7 @@ class NotebookTest(AbstractWidgetTest, unittest.TestCase):
self
.
nb
.
add
(
self
.
child2
)
self
.
nb
.
add
(
self
.
child2
)
self
.
assertEqual
(
self
.
nb
.
tabs
(),
tabs
)
self
.
assertEqual
(
self
.
nb
.
tabs
(),
tabs
)
self
.
assertEqual
(
self
.
nb
.
index
(
self
.
child2
),
child2_index
)
self
.
assertEqual
(
self
.
nb
.
index
(
self
.
child2
),
child2_index
)
self
.
assert
True
(
str
(
self
.
child2
)
==
self
.
nb
.
tabs
()[
child2_index
])
self
.
assert
Equal
(
str
(
self
.
child2
),
self
.
nb
.
tabs
()[
child2_index
])
# but the tab next to it (not hidden) is the one selected now
# but the tab next to it (not hidden) is the one selected now
self
.
assertEqual
(
self
.
nb
.
index
(
'current'
),
curr
+
1
)
self
.
assertEqual
(
self
.
nb
.
index
(
'current'
),
curr
+
1
)
...
@@ -996,19 +996,19 @@ class NotebookTest(AbstractWidgetTest, unittest.TestCase):
...
@@ -996,19 +996,19 @@ class NotebookTest(AbstractWidgetTest, unittest.TestCase):
tabs
=
self
.
nb
.
tabs
()
tabs
=
self
.
nb
.
tabs
()
child1_index
=
self
.
nb
.
index
(
self
.
child1
)
child1_index
=
self
.
nb
.
index
(
self
.
child1
)
self
.
nb
.
forget
(
self
.
child1
)
self
.
nb
.
forget
(
self
.
child1
)
self
.
assert
False
(
str
(
self
.
child1
)
in
self
.
nb
.
tabs
())
self
.
assert
NotIn
(
str
(
self
.
child1
),
self
.
nb
.
tabs
())
self
.
assertEqual
(
len
(
tabs
)
-
1
,
len
(
self
.
nb
.
tabs
()))
self
.
assertEqual
(
len
(
tabs
)
-
1
,
len
(
self
.
nb
.
tabs
()))
self
.
nb
.
add
(
self
.
child1
)
self
.
nb
.
add
(
self
.
child1
)
self
.
assertEqual
(
self
.
nb
.
index
(
self
.
child1
),
1
)
self
.
assertEqual
(
self
.
nb
.
index
(
self
.
child1
),
1
)
self
.
assert
False
(
child1_index
==
self
.
nb
.
index
(
self
.
child1
))
self
.
assert
NotEqual
(
child1_index
,
self
.
nb
.
index
(
self
.
child1
))
def
test_index
(
self
):
def
test_index
(
self
):
self
.
assertRaises
(
Tkinter
.
TclError
,
self
.
nb
.
index
,
-
1
)
self
.
assertRaises
(
Tkinter
.
TclError
,
self
.
nb
.
index
,
-
1
)
self
.
assertRaises
(
Tkinter
.
TclError
,
self
.
nb
.
index
,
None
)
self
.
assertRaises
(
Tkinter
.
TclError
,
self
.
nb
.
index
,
None
)
self
.
assert
True
(
isinstance
(
self
.
nb
.
index
(
'end'
),
int
)
)
self
.
assert
IsInstance
(
self
.
nb
.
index
(
'end'
),
int
)
self
.
assertEqual
(
self
.
nb
.
index
(
self
.
child1
),
0
)
self
.
assertEqual
(
self
.
nb
.
index
(
self
.
child1
),
0
)
self
.
assertEqual
(
self
.
nb
.
index
(
self
.
child2
),
1
)
self
.
assertEqual
(
self
.
nb
.
index
(
self
.
child2
),
1
)
self
.
assertEqual
(
self
.
nb
.
index
(
'end'
),
2
)
self
.
assertEqual
(
self
.
nb
.
index
(
'end'
),
2
)
...
@@ -1072,7 +1072,7 @@ class NotebookTest(AbstractWidgetTest, unittest.TestCase):
...
@@ -1072,7 +1072,7 @@ class NotebookTest(AbstractWidgetTest, unittest.TestCase):
self
.
assertRaises
(
Tkinter
.
TclError
,
self
.
nb
.
tab
,
'notab'
)
self
.
assertRaises
(
Tkinter
.
TclError
,
self
.
nb
.
tab
,
'notab'
)
self
.
assertRaises
(
Tkinter
.
TclError
,
self
.
nb
.
tab
,
None
)
self
.
assertRaises
(
Tkinter
.
TclError
,
self
.
nb
.
tab
,
None
)
self
.
assert
True
(
isinstance
(
self
.
nb
.
tab
(
self
.
child1
),
dict
)
)
self
.
assert
IsInstance
(
self
.
nb
.
tab
(
self
.
child1
),
dict
)
self
.
assertEqual
(
self
.
nb
.
tab
(
self
.
child1
,
text
=
None
),
'a'
)
self
.
assertEqual
(
self
.
nb
.
tab
(
self
.
child1
,
text
=
None
),
'a'
)
# newer form for querying a single option
# newer form for querying a single option
self
.
assertEqual
(
self
.
nb
.
tab
(
self
.
child1
,
'text'
),
'a'
)
self
.
assertEqual
(
self
.
nb
.
tab
(
self
.
child1
,
'text'
),
'a'
)
...
@@ -1193,7 +1193,7 @@ class TreeviewTest(AbstractWidgetTest, unittest.TestCase):
...
@@ -1193,7 +1193,7 @@ class TreeviewTest(AbstractWidgetTest, unittest.TestCase):
bbox
=
self
.
tv
.
bbox
(
children
[
0
])
bbox
=
self
.
tv
.
bbox
(
children
[
0
])
self
.
assertEqual
(
len
(
bbox
),
4
)
self
.
assertEqual
(
len
(
bbox
),
4
)
self
.
assert
True
(
isinstance
(
bbox
,
tuple
)
)
self
.
assert
IsInstance
(
bbox
,
tuple
)
for
item
in
bbox
:
for
item
in
bbox
:
if
not
isinstance
(
item
,
int
):
if
not
isinstance
(
item
,
int
):
self
.
fail
(
"Invalid bounding box:
%
s"
%
bbox
)
self
.
fail
(
"Invalid bounding box:
%
s"
%
bbox
)
...
@@ -1216,7 +1216,7 @@ class TreeviewTest(AbstractWidgetTest, unittest.TestCase):
...
@@ -1216,7 +1216,7 @@ class TreeviewTest(AbstractWidgetTest, unittest.TestCase):
self
.
assertEqual
(
self
.
tv
.
get_children
(),
())
self
.
assertEqual
(
self
.
tv
.
get_children
(),
())
item_id
=
self
.
tv
.
insert
(
''
,
'end'
)
item_id
=
self
.
tv
.
insert
(
''
,
'end'
)
self
.
assert
True
(
isinstance
(
self
.
tv
.
get_children
(),
tuple
)
)
self
.
assert
IsInstance
(
self
.
tv
.
get_children
(),
tuple
)
self
.
assertEqual
(
self
.
tv
.
get_children
()[
0
],
item_id
)
self
.
assertEqual
(
self
.
tv
.
get_children
()[
0
],
item_id
)
# add item_id and child3 as children of child2
# add item_id and child3 as children of child2
...
@@ -1241,9 +1241,9 @@ class TreeviewTest(AbstractWidgetTest, unittest.TestCase):
...
@@ -1241,9 +1241,9 @@ class TreeviewTest(AbstractWidgetTest, unittest.TestCase):
def
test_column
(
self
):
def
test_column
(
self
):
# return a dict with all options/values
# return a dict with all options/values
self
.
assert
True
(
isinstance
(
self
.
tv
.
column
(
'#0'
),
dict
)
)
self
.
assert
IsInstance
(
self
.
tv
.
column
(
'#0'
),
dict
)
# return a single value of the given option
# return a single value of the given option
self
.
assert
True
(
isinstance
(
self
.
tv
.
column
(
'#0'
,
width
=
None
),
int
)
)
self
.
assert
IsInstance
(
self
.
tv
.
column
(
'#0'
,
width
=
None
),
int
)
# set a new value for an option
# set a new value for an option
self
.
tv
.
column
(
'#0'
,
width
=
10
)
self
.
tv
.
column
(
'#0'
,
width
=
10
)
# testing new way to get option value
# testing new way to get option value
...
@@ -1356,7 +1356,7 @@ class TreeviewTest(AbstractWidgetTest, unittest.TestCase):
...
@@ -1356,7 +1356,7 @@ class TreeviewTest(AbstractWidgetTest, unittest.TestCase):
def
test_heading
(
self
):
def
test_heading
(
self
):
# check a dict is returned
# check a dict is returned
self
.
assert
True
(
isinstance
(
self
.
tv
.
heading
(
'#0'
),
dict
)
)
self
.
assert
IsInstance
(
self
.
tv
.
heading
(
'#0'
),
dict
)
# check a value is returned
# check a value is returned
self
.
tv
.
heading
(
'#0'
,
text
=
'hi'
)
self
.
tv
.
heading
(
'#0'
,
text
=
'hi'
)
...
@@ -1467,7 +1467,7 @@ class TreeviewTest(AbstractWidgetTest, unittest.TestCase):
...
@@ -1467,7 +1467,7 @@ class TreeviewTest(AbstractWidgetTest, unittest.TestCase):
self
.
tv
.
item
(
item
,
values
=
list
(
self
.
tv
.
item
(
item
,
values
=
None
)))
self
.
tv
.
item
(
item
,
values
=
list
(
self
.
tv
.
item
(
item
,
values
=
None
)))
self
.
assertEqual
(
self
.
tv
.
item
(
item
,
values
=
None
),
(
value
,
))
self
.
assertEqual
(
self
.
tv
.
item
(
item
,
values
=
None
),
(
value
,
))
self
.
assert
True
(
isinstance
(
self
.
tv
.
item
(
item
),
dict
)
)
self
.
assert
IsInstance
(
self
.
tv
.
item
(
item
),
dict
)
# erase item values
# erase item values
self
.
tv
.
item
(
item
,
values
=
''
)
self
.
tv
.
item
(
item
,
values
=
''
)
...
@@ -1568,7 +1568,7 @@ class TreeviewTest(AbstractWidgetTest, unittest.TestCase):
...
@@ -1568,7 +1568,7 @@ class TreeviewTest(AbstractWidgetTest, unittest.TestCase):
'blue'
)
'blue'
)
self
.
assertEqual
(
str
(
self
.
tv
.
tag_configure
(
'test'
,
foreground
=
None
)),
self
.
assertEqual
(
str
(
self
.
tv
.
tag_configure
(
'test'
,
foreground
=
None
)),
'blue'
)
'blue'
)
self
.
assert
True
(
isinstance
(
self
.
tv
.
tag_configure
(
'test'
),
dict
)
)
self
.
assert
IsInstance
(
self
.
tv
.
tag_configure
(
'test'
),
dict
)
@add_standard_options
(
StandardTtkOptionsTests
)
@add_standard_options
(
StandardTtkOptionsTests
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment