Skip to content

Instantly share code, notes, and snippets.

View johnwayodi's full-sized avatar

John Wayodi johnwayodi

View GitHub Profile
@johnwayodi
johnwayodi / LoginTests.py
Last active December 19, 2018 11:42
Test that a User can Login with correct details ​
from django.test import TestCase
from rest_framework.test import APIClient
from rest_framework import status
from django.core.urlresolvers import reverse
class LoginTestCase(TestCase):
"""Test suite for the api login views."""
def setUp(self):