~reldan/nova/l-m-n-fix-network-info

« back to all changes in this revision

Viewing changes to nova/tests/api/test_wsgi.py

  • Committer: Tarmac
  • Author(s): Vishvananda Ishaya
  • Date: 2011-02-25 01:04:25 UTC
  • mfrom: (706.6.9 tests-clean-db)
  • Revision ID: tarmac-20110225010425-prsbcqirc62kfyem
Make tests start with a clean database for every test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
Test WSGI basics and provide some helper functions for other WSGI tests.
22
22
"""
23
23
 
24
 
import unittest
 
24
from nova import test
25
25
 
26
26
import routes
27
27
import webob
29
29
from nova import wsgi
30
30
 
31
31
 
32
 
class Test(unittest.TestCase):
 
32
class Test(test.TestCase):
33
33
 
34
34
    def test_debug(self):
35
35
 
92
92
        self.assertNotEqual(result.body, "123")
93
93
 
94
94
 
95
 
class SerializerTest(unittest.TestCase):
 
95
class SerializerTest(test.TestCase):
96
96
 
97
97
    def match(self, url, accept, expect):
98
98
        input_dict = dict(servers=dict(a=(2, 3)))