This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def determine_age(): | |
| response = input('name and age:') | |
| check = [int(i) for i in response.split() if i.isdigit()] | |
| if check!=[]: | |
| for i in check: | |
| value = 100 - i | |
| print('youare left with '+ str(value) +'years to clock 100') | |
| print('pass in your age and name') | |
| some() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class UserRetrieveUpdateAPIViewTestCase(TestCase): | |
| """ | |
| This class defines the test suite for the view | |
| that retrieves and updates a user | |
| """ | |
| def setUp(self): | |
| self.user_data_2 = { | |
| "username": "nicksbro", | |
| "email": "nicholus@gmail.com", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class RegistrationAPIViewTestCase(TestCase): | |
| """ This class defines the test suite for the registration view. """ | |
| def setUp(self): | |
| self.existing_user_data = { | |
| "username": "janejones", | |
| "email": "jjones@email.com", | |
| "password": "Enter-123"} |
NewerOlder