mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 00:20:07 +00:00
add djangorestframework
This commit is contained in:
12
thirdpart/djangorestframework/tests/status.py
Normal file
12
thirdpart/djangorestframework/tests/status.py
Normal file
@@ -0,0 +1,12 @@
|
||||
"""Tests for the status module"""
|
||||
from django.test import TestCase
|
||||
from djangorestframework import status
|
||||
|
||||
|
||||
class TestStatus(TestCase):
|
||||
"""Simple sanity test to check the status module"""
|
||||
|
||||
def test_status(self):
|
||||
"""Ensure the status module is present and correct."""
|
||||
self.assertEquals(200, status.HTTP_200_OK)
|
||||
self.assertEquals(404, status.HTTP_404_NOT_FOUND)
|
Reference in New Issue
Block a user