def test_validate_user_data_file_copy(self, filler): result = copyfunc.validate_user_data(4, 4, 2020, 4, 4, 2020, os.getcwd(), os.getcwd(), '.blahblahblah') self.assertEqual(result, 'Files Copied')
def test_validate_user_data_user_continue(self, filler1, filler2): # end_date = copyfunc.make_time_end_of_day(4, 4, 2020) # verify.verify_end_date.side_effect = Mock(return_value=[end_date, False]) result = copyfunc.validate_user_data(1, 4, 2020, 4, 4, 2020, os.getcwd(), os.getcwd(), '') self.assertEqual(result, 'Files Copied')
def test_validate_user_data_bad_path(self, filler): result = copyfunc.validate_user_data(4, 4, 2020, 4, 4, 2020, os.getcwd() + 'foofoofoo', os.getcwd(), '.txt') self.assertEqual(result, 'Dates Valid, User Continue, Paths Invalid')
def test_validate_user_data_int_for_date(self, start_date): result = copyfunc.validate_user_data('a', 4, 2020, 4, 4, 2020, os.getcwd(), os.getcwd(), '.txt') self.assertEqual(result, 'Dates Not Valid')