Esempio n. 1
0
def test_deselect_notesxisting():
    application_control.selected_channels = []
    with pytest.raises(application_control.Channel_name_Error):
        application_control.deselect("FaceBook")
Esempio n. 2
0
def test_deselect():
    selected_channels = ["Twitter", "Facebook", "Mail"]
    application_control.selected_channels = ["Twitter", "Facebook", "Mail"]
    application_control.deselect("Mail")
    selected_channels.remove("Mail")
    assert application_control.selected_channels == selected_channels