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

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2014-03-06 14:44:28 UTC
  • mto: (28.1.1 utopic-proposed) (1.2.1)
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: package-import@ubuntu.com-20140306144428-rvphsh4igwyulzf0
Tags: upstream-2014.1~b3
ImportĀ upstreamĀ versionĀ 2014.1~b3

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
 
85
85
        self.assertEqual(4, len(data))
86
86
 
 
87
    def test_get_event_invalid_path(self):
 
88
        data = self.get_json('/event_types/trait_A/', headers=headers,
 
89
                             expect_errors=True)
 
90
        self.assertEqual(404, data.status_int)
 
91
 
87
92
    def test_get_traits_for_non_existent_event(self):
88
93
        path = self.PATH % "NO_SUCH_EVENT_TYPE"
89
94
        data = self.get_json(path, headers=headers)