Пример #1
0
def test_display():
    a = App()
    b = Box(a)
    display_test(b)
    a.destroy()
Пример #2
0
def test_size():
    a = App()
    t = Text(a)
    size_text_test(t)
    size_fill_test(t)
    a.destroy()
Пример #3
0
def test_cascaded_properties():
    a = App()
    t = Text(a, color=None, size=None, font=None)
    cascaded_properties_test(a, t, True)
    a.destroy()
Пример #4
0
def test_enable():
    a = App()
    t = Text(a)
    enable_test(t)
    a.destroy()
Пример #5
0
def test_text():
    a = App()
    # default values
    t = Text(a, color=None, size=None, font=None)
    text_test(t)
    a.destroy()
Пример #6
0
def test_events():
    a = App()
    w = Waffle(a)
    events_test(w)
    a.destroy()
Пример #7
0
def test_inherited_properties():
    a = App()
    inherited_properties_test(a, lambda: Waffle(a), False)
    a.destroy()
Пример #8
0
def test_clear():
    a = App()
    t = Text(a, text="foo")
    t.clear()
    assert t.value == ""
    a.destroy()
Пример #9
0
def test_append():
    a = App()
    t = Text(a, text="foo")
    t.append("bar")
    assert t.value == "foobar"
    a.destroy()
Пример #10
0
def test_cascaded_properties():
    a = App()
    t = Text(a)
    cascaded_properties_test(a, t, True)
    a.destroy()
Пример #11
0
def test_inherited_properties():
    a = App()
    inherited_properties_test(a, lambda: Text(a), True)
    a.destroy()
Пример #12
0
def test_text():
    a = App()
    t = Text(a)
    text_test(t)
    a.destroy()
Пример #13
0
def test_size():
    a = App()
    b = Box(a)
    size_pixel_test(b)
    size_fill_test(b)
    a.destroy()
Пример #14
0
def test_color():
    a = App()
    b = Box(a)
    color_test(b)
    a.destroy()
Пример #15
0
def test_display():
    a = App()
    w = Waffle(a)
    display_test(w)
    a.destroy()
Пример #16
0
def test_after_schedule():
    a = App()
    t = Text(a)
    schedule_after_test(a, t)
    a.destroy()
Пример #17
0
def test_color():
    a = App()
    w = Waffle(a)
    color_test(w)
    a.destroy()
Пример #18
0
def test_repeat_schedule():
    a = App()
    t = Text(a)
    schedule_repeat_test(a, t)
    a.destroy()
Пример #19
0
def test_cascaded_properties():
    a = App()
    w = Waffle(a)
    cascaded_properties_test(a, w, False)
    a.destroy()
Пример #20
0
def test_destroy():
    a = App()
    t = Text(a)
    destroy_test(t)
    a.destroy()
Пример #21
0
def test_auto_layout():
    a = App()
    w = Waffle(a)
    auto_layout_test(w, None)
    a.destroy()
Пример #22
0
def test_after_schedule():
    a = App()
    w = Waffle(a)
    schedule_after_test(a, w)
    a.destroy()
Пример #23
0
def test_display():
    a = App()
    t = Text(a)
    display_test(t)
    a.destroy()
Пример #24
0
def test_repeat_schedule():
    a = App()
    w = Waffle(a)
    schedule_repeat_test(a, w)
    a.destroy()
Пример #25
0
def test_color():
    a = App()
    t = Text(a)
    color_test(t)
    a.destroy()
Пример #26
0
def test_destroy():
    a = App()
    w = Waffle(a)
    destroy_test(w)
    a.destroy()
Пример #27
0
def test_events():
    a = App()
    t = Text(a)
    events_test(t)
    a.destroy()
Пример #28
0
def test_enable():
    a = App()
    w = Waffle(a)
    enable_test(w)
    a.destroy()
Пример #29
0
def test_inherited_properties():
    a = App()
    inherited_properties_test(
        a, lambda: Text(a, color=None, size=None, font=None), True)
    a.destroy()
Пример #30
0
def test_destroy():
    a = App()
    b = Box(a)
    destroy_test(b)
    a.destroy()