~ubuntu-branches/ubuntu/quantal/nova/quantal-proposed

« back to all changes in this revision

Viewing changes to nova/tests/test_deprecated.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-08-16 14:04:11 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: package-import@ubuntu.com-20120816140411-0mr4n241wmk30t9l
Tags: upstream-2012.2~f3
ImportĀ upstreamĀ versionĀ 2012.2~f3

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
        self.assertRaises(exception.DeprecatedConfig,
39
39
                          deprecated.warn, "test2")
40
40
        self.assertEqual(self.logbuffer, 'Deprecated Config: test2')
 
41
 
 
42
    def test_deprecated_logs_only_once(self):
 
43
        deprecated.warn('only once!')
 
44
        deprecated.warn('only once!')
 
45
        deprecated.warn('only once!')
 
46
        self.assertEqual(self.logbuffer, 'Deprecated Config: only once!')