Skip to content

Instantly share code, notes, and snippets.

View gitaumoses4's full-sized avatar
🟢
Online

Moses Gitau gitaumoses4

🟢
Online
View GitHub Profile
"""
LOGIN TEST
Tests the following functionalities:
1. User can login with their valid username and password
2. User cannot login with a username that does not exist in the system
"""
from django.test import TestCase
from rest_framework import status
from rest_framework.test import APIClient
@gitaumoses4
gitaumoses4 / gist:eaccdff89ec0bff5bf5a0e6981e3edcf
Created September 19, 2018 11:50
Test Driven Development
def