Merge Week 1 #1

Merged
Kenwood merged 10 commits from week-1 into master 2021-01-08 21:14:34 -05:00
4 changed files with 19 additions and 0 deletions
Showing only changes of commit 8b5453fa26 - Show all commits

View File

View File

View File

@ -0,0 +1,19 @@
import unittest
from unittest.mock import patch
import mad_lib
class zyBooks_Test(unittest.TestCase):
@patch('builtins.input', return_value=['Eric', 'Chipotle', '12', 'cars'])
def test_zyBooks(self, mock_input):
result = mad_lib()
self.assertEqual(result, 6)
if __name__ == '__main__':
unittest.main()