def test_answer_advisor_semi_fail(self, mock_input): self.assertEqual( initial.initial_questions().__dict__, { 'name': 'vinny', 'advisor': 'bryony', 'insitution': 'OSU', 'date': datetime.datetime.now().strftime('%x') })
def test_answer_valid_inputs_non_student(self, mock_input): self.assertEqual( initial.initial_questions().__dict__, { 'name': 'vinny', 'advisor': 'n/a', 'insitution': 'dummy_corp', 'date': datetime.datetime.now().strftime('%x') })
def test_answer_advisor_fail(self, mock_input): self.assertEqual(initial.initial_questions(), 'failed')
@author: vinny """ ## Runfile for package import datetime import initial #initial questions for user import BOM if __name__ == '__main__': initial.welcome() user_information = initial.initial_questions() print('') print('Nice to meet you', user_information.name) print('It seems that you are from', user_information.insitution) print('Your advisor is', user_information.advisor) print('You accessed this package on', user_information.date) adding_products = True global_BOM = [] while adding_products == True: system_information = initial.system_questions() print('')