~jameinel/loggerhead/authors-733015

« back to all changes in this revision

Viewing changes to loggerhead/tests/test_revision_ui.py

  • Committer: John Arbash Meinel
  • Date: 2011-03-16 12:37:17 UTC
  • Revision ID: john@arbash-meinel.com-20110316123717-c36rtyk5ea30oboy
Suppress the Author(s) field when it matches the committer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        # exact HTML connections, which I wanted to avoid.
34
34
        res.mustcontain('Committer', 'Joe Example',
35
35
                        'Author(s)', 'A Author, B Author')
 
36
 
 
37
    def test_author_is_committer(self):
 
38
        self.createBranch()
 
39
        self.tree.commit('First', committer="Joe Example <joe@example.com>")
 
40
        app = self.setUpLoggerhead()
 
41
        res = app.get('/revision/1')
 
42
        # We would like to assert that Joe Example is connected to Committer,
 
43
        # and the Authors are connected. However, that requires asserting the
 
44
        # exact HTML connections, which I wanted to avoid.
 
45
        res.mustcontain('Committer', 'Joe Example')
 
46
        self.assertFalse('Author(s)' in res.body)