~gundlach/nova/servers_api

« back to all changes in this revision

Viewing changes to nova/tests/api/rackspace/flavors.py

  • Committer: Tarmac
  • Author(s): Cerberus
  • Date: 2010-09-28 22:48:06 UTC
  • mfrom: (267.2.16 servers_api)
  • Revision ID: hudson@openstack.org-20100928224806-p2t60mo2ff8kk8g5
Implementation of the Rackspace servers API controller

Currently, work remains on the controller, but I'm proposing a merge before the diff becomes completely unwieldy. However, all implemented tests pass. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#    under the License.
17
17
 
18
18
import unittest
 
19
import stubout
19
20
 
 
21
import nova.api
20
22
from nova.api.rackspace import flavors
 
23
from nova.tests.api.rackspace import test_helper
21
24
from nova.tests.api.test_helper import *
22
25
 
23
26
class FlavorsTest(unittest.TestCase):
24
27
    def setUp(self):
25
28
        self.stubs = stubout.StubOutForTesting()
 
29
        test_helper.FakeAuthManager.auth_data = {}
 
30
        test_helper.FakeAuthDatabase.data = {}
 
31
        test_helper.stub_for_testing(self.stubs)
 
32
        test_helper.stub_out_rate_limiting(self.stubs)
 
33
        test_helper.stub_out_auth(self.stubs)
26
34
 
27
35
    def tearDown(self):
28
36
        self.stubs.UnsetAll()
29
37
 
30
38
    def test_get_flavor_list(self):
31
 
        pass
 
39
        req = webob.Request.blank('/v1.0/flavors')
 
40
        res = req.get_response(nova.api.API())
 
41
        print res
32
42
 
33
43
    def test_get_flavor_by_id(self):
34
44
        pass
 
45
 
 
46
if __name__ == '__main__':
 
47
    unittest.main()