在account/tests.py中删除不必要的代码

This commit is contained in:
hohoTT
2015-08-05 20:23:42 +08:00
parent c0d8d900cd
commit 98f8b65011

View File

@@ -1,8 +1,6 @@
# coding=utf-8
import json
from django.contrib import auth
from django.core.urlresolvers import reverse
from django.test import TestCase, Client
from django.http import HttpResponse
@@ -74,7 +72,6 @@ class EmailCheckTest(APITestCase):
def test_invalid_data(self):
response = self.client.post(self.url, data={"email000": "11@qq.com"})
self.assertEqual(response.data["code"], 1)
self.assertEqual(response.data["code"], 1)
def test_email_exists(self):
response = self.client.post(self.url, data={"email": "11@qq.com"})