Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.test import TestCase
- from users import userRegistration
- class UserRegistartionTest(TestCase):
- """set up the tests"""
- def setup():
- user = {
- name : "",
- email : "",
- password : ""
- }
- """test that a user cannot submit empty details on registration"""
- def test_user_cannot_submit_empty_data():
- self.assertEqual(userRegistration(user), "You cannot submit empty data")
Add Comment
Please, Sign In to add comment