Exemplo n.º 1
0
 def test_16_skip_forward_unselectable(self, odd_selectable):
     """Should skip unselectable in forward direction."""
     assert file_select_screen.next_menu_item(1)["item"] == "file2"
Exemplo n.º 2
0
 def test_17_skip_reverse_unselectable(self, odd_selectable):
     """Should skip unselectable in reverse direction."""
     assert file_select_screen.next_menu_item(-1)["item"] == "register"
Exemplo n.º 3
0
 def test_14_up_to_first_item(self, all_selectable):
     """Should walk up to first item after second."""
     assert file_select_screen.next_menu_item(-1)["item"] == "file1"
Exemplo n.º 4
0
 def test_15_wrap_up_around_top_to_fifth_item(self, all_selectable):
     """Should wrap around top to fifth item after first."""
     assert file_select_screen.next_menu_item(-1)["item"] == "elimination"
Exemplo n.º 5
0
 def test_12_up_to_third_item(self, all_selectable):
     """Should walk up to third item after fourth."""
     assert file_select_screen.next_menu_item(-1)["item"] == "file3"
Exemplo n.º 6
0
 def test_13_up_to_second_item(self, all_selectable):
     """Should walk up to second item after third."""
     assert file_select_screen.next_menu_item(-1)["item"] == "file2"
Exemplo n.º 7
0
 def test_09_wrap_down_around_bottom_to_first_item(self, all_selectable):
     """Should wrap back to first after fifth."""
     assert file_select_screen.next_menu_item(1)["item"] == "file1"
Exemplo n.º 8
0
 def test_11_up_to_fourth_item(self, all_selectable):
     """Should walk up to fourth item after fifth."""
     assert file_select_screen.next_menu_item(-1)["item"] == "register"
Exemplo n.º 9
0
 def test_07_down_to_fourth_item(self, all_selectable):
     """Should walk down to fourth item after third."""
     assert file_select_screen.next_menu_item(1)["item"] == "register"
Exemplo n.º 10
0
 def test_08_down_to_fifth_item(self, all_selectable):
     """Should walk down to fifth item after fourth."""
     assert file_select_screen.next_menu_item(1)["item"] == "elimination"
Exemplo n.º 11
0
 def test_06_down_to_third_item(self, all_selectable):
     """Should walk down to third item after second."""
     assert file_select_screen.next_menu_item(1)["item"] == "file3"
Exemplo n.º 12
0
 def test_05_down_to_second_item(self, all_selectable):
     """Should walk down to second item after first."""
     assert file_select_screen.next_menu_item(1)["item"] == "file2"
Exemplo n.º 13
0
 def test_04_back_to_first_item(self, all_selectable):
     """Should go back to first item if negative."""
     assert file_select_screen.next_menu_item(-1)["item"] == "file1"
Exemplo n.º 14
0
 def test_03_still_second_item(self, all_selectable):
     """Should stay at second item."""
     assert file_select_screen.next_menu_item(0)["item"] == "file2"
Exemplo n.º 15
0
 def test_01_start(self, all_selectable):
     """Should start at first item."""
     assert file_select_screen.next_menu_item(0)["item"] == "file1"