Cloud computing coursework:Saas 图片社交网站
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

19 行
510 B

# -*- coding: utf-8 -*-
from flask import current_app
from tests.base import BaseTestCase
class BasicTestCase(BaseTestCase):
def test_app_exist(self):
self.assertFalse(current_app is None)
def test_app_is_testing(self):
self.assertTrue(current_app.config['TESTING'])
def test_404_error(self):
response = self.client.get('/foo')
data = response.get_data(as_text=True)
self.assertEqual(response.status_code, 404)
self.assertIn('404 Error', data)