예제 #1
0
파일: select.py 프로젝트: EverydayQA/prima
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
예제 #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'])