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

« back to all changes in this revision

Viewing changes to ceilometer/tests/dispatcher/test_file.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:
46
46
        self.assertEqual(1, len(dispatcher.log.handlers))
47
47
        # The handler should be RotatingFileHandler
48
48
        handler = dispatcher.log.handlers[0]
49
 
        self.assertTrue(isinstance(handler,
50
 
                                   logging.handlers.RotatingFileHandler))
 
49
        self.assertIsInstance(handler,
 
50
                              logging.handlers.RotatingFileHandler)
51
51
 
52
52
        msg = {'counter_name': 'test',
53
53
               'resource_id': self.id(),
78
78
        self.assertEqual(1, len(dispatcher.log.handlers))
79
79
        # The handler should be RotatingFileHandler
80
80
        handler = dispatcher.log.handlers[0]
81
 
        self.assertTrue(isinstance(handler,
82
 
                                   logging.FileHandler))
 
81
        self.assertIsInstance(handler,
 
82
                              logging.FileHandler)
83
83
 
84
84
        msg = {'counter_name': 'test',
85
85
               'resource_id': self.id(),