3
# Copyright 2008 Google Inc.
5
# Licensed under the Apache License, Version 2.0 (the "License");
6
# you may not use this file except in compliance with the License.
7
# You may obtain a copy of the License at
9
# http://www.apache.org/licenses/LICENSE-2.0
11
# Unless required by applicable law or agreed to in writing, software
12
# distributed under the License is distributed on an "AS IS" BASIS,
13
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
# See the License for the specific language governing permissions and
15
# limitations under the License.
17
"""Tests that the core module functionality is present and functioning."""
22
from appengine_django import appid
23
from appengine_django import have_appserver
26
class AppengineDjangoTest(unittest.TestCase):
27
"""Tests that the helper module has been correctly installed."""
29
def testAppidProvided(self):
30
"""Tests that application ID and configuration has been loaded."""
31
self.assert_(appid is not None)
33
def testAppserverDetection(self):
34
"""Tests that the appserver detection flag is present and correct."""
35
# It seems highly unlikely that these tests would ever be run from within
37
self.assertEqual(have_appserver, False)