Skip to content

Instantly share code, notes, and snippets.

@susanwere
Last active October 17, 2018 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save susanwere/66d4e4841c1baa8d88ed75fb11118bfc to your computer and use it in GitHub Desktop.
Save susanwere/66d4e4841c1baa8d88ed75fb11118bfc to your computer and use it in GitHub Desktop.
Test for the Authors Haven codebase
from django.test import TestCase
from authors.apps.authentication.models.UserManager import create_user
class UserTestCase(TestCase):
def test_to_create_user(self):
"""user can be registered"""
create_user.user = (username="patty", email="patty@gmail.com", password="patty123")
new_user = create_user.user
self.assertEqual(new_user.username, "patty")
self.assertEqual(new_user.email, "patty@gmail.com")
@susanwere
Copy link
Author

Testing for user registration

@susanwere
Copy link
Author

Testing for user registration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment