Guest User

Untitled

a guest
Dec 19th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. from django.test import TestCase
  2.  
  3. from users import userRegistration
  4.  
  5. class UserRegistartionTest(TestCase):
  6.  
  7. """set up the tests"""
  8. def setup():
  9.  
  10. user = {
  11. name : "",
  12. email : "",
  13. password : ""
  14. }
  15. """test that a user cannot submit empty details on registration"""
  16. def test_user_cannot_submit_empty_data():
  17. self.assertEqual(userRegistration(user), "You cannot submit empty data")
Add Comment
Please, Sign In to add comment