Ejemplo n.º 1
0
def main(argv):
    # args
    # menu.print_format_table()

    ### read 1 json file, 1 quiz from take_quiz()
    the_list = ['aaa','bbb','ccc','ddd']
    selections = menu.select_from_list(the_list)
    print selections
Ejemplo n.º 2
0
 def test_select_from_list2(self, mock_get_input):
     mock_get_input.return_value = '1 2'
     alist=['aaa','bbb','ccc', 'ddd']
     sels = menu.select_from_list(alist)
     print sels
     self.assertEqual(sels,['bbb','ccc'])