Skip to content

Instantly share code, notes, and snippets.

View NicholusMuwonge's full-sized avatar

nicks-bro NicholusMuwonge

View GitHub Profile
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()
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",
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"}