Skip to content

Instantly share code, notes, and snippets.

View MuhanguziDavid's full-sized avatar

David Muhanguzi MuhanguziDavid

View GitHub Profile
from authors.apps.authentication.models import User
from django.test import TestCase
from rest_framework import status
class LoginTest(TestCase):
def setUp(self):
self.user = User(email = "david@gmail.com", username = "davie", password = "12345678")
self.user.save()
def test_login_without_password(self):