~ubuntu-branches/ubuntu/vivid/ceilometer/vivid-proposed

« back to all changes in this revision

Viewing changes to ceilometer/tests/api/v2/test_capabilities.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2014-06-13 13:20:35 UTC
  • mfrom: (1.1.17)
  • Revision ID: package-import@ubuntu.com-20140613132035-42ibzh8j7ww2q31i
Tags: 2014.2~b1-0ubuntu1
* New upstream release.
* debian/control: Open up juno release
* debian/patches/fix-requirements.patch: Refreshed.
* debian/rules: Patch the ceilometer.conf.sample directly since
  the configuration files are generated by a tool.
* debian/ceilometer-common.install: Drop sources.json.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- encoding: utf-8 -*-
2
1
#
3
2
# Copyright Ericsson AB 2014. All rights reserved
4
3
#
33
32
 
34
33
    def test_capabilities(self):
35
34
        data = self.get_json(self.url)
 
35
        # check that capabilities data contains both 'api' and 'storage' fields
36
36
        self.assertIsNotNone(data)
37
37
        self.assertNotEqual({}, data)
 
38
        self.assertIn('api', data)
 
39
        self.assertIn('storage', data)