~canonical-launchpad-branches/python-timeline/trunk

« back to all changes in this revision

Viewing changes to timeline/tests/test_timeline.py

  • Committer: Colin Watson
  • Date: 2018-05-08 11:41:54 UTC
  • mfrom: (10.2.1 py3)
  • Revision ID: cjwatson@canonical.com-20180508114154-qcoc0oiscvr8smu8
[r=wgrant] Add Python 3 support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
"""Tests of the Timeline class."""
16
16
 
 
17
from __future__ import absolute_import, print_function
 
18
 
17
19
__metaclass__ = type
18
20
 
19
21
import datetime
128
130
        timeline = Timeline()
129
131
        action = timeline.start("Sending mail", "Noone")
130
132
        self.assertNotEqual(None, action.backtrace)
131
 
        self.assertIsInstance(action.backtrace, basestring)
 
133
        self.assertIsInstance(action.backtrace, str)
132
134
        self.assertThat(action.backtrace,
133
135
            EndsWith('    action = timeline.start("Sending mail", "Noone")\n'))
134
136