def test_create_user_without_email(self): print('function: test_create_user_without_email') data = { 'email': '', 'age': '13', 'first_name': 'e', 'last_name': 'e', 'password': '******' } self.assertFalse(isValid(data) == True) print('----------------------------') print('')
def test_create_user_with_false_age(self): print('function: test_create_user_with_false_age') data = { 'email': random_char(7) + "@gmail.com", 'age': '12', 'first_name': 'e', 'last_name': 'e', 'password': '******' } self.assertFalse(isValid(data) == True) print('----------------------------') print('')
def test_create_valid_user(self): print('function: test_create_valid_user') data = { 'email': random_char(3) + "*****@*****.**", 'age': '13', 'first_name': 'e', 'last_name': 'e', 'password': '******' } self.assertTrue(isValid(data) == True) print('----------------------------') print('')