Skip to content

Instantly share code, notes, and snippets.

View bevkololi's full-sized avatar

Beverly Kololi bevkololi

View GitHub Profile
@bevkololi
bevkololi / tests.py
Last active September 19, 2018 12:50
from django.test import TestCase
from rest_framework import status
from rest_framework import APIClient
class ArticleTestCase(TestCase):
def setUp(self):
"""Define test variable"""
self.client = APIClient()
self.article_data = {'title': 'Hello world', 'content':'hello world, this is a group activity that involves tdd'}