/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tests/test_commands.py

  • Committer: Ian Clatworthy
  • Date: 2009-02-17 01:41:06 UTC
  • mto: (0.64.116 trunk)
  • mto: This revision was merged to the branch mainline in revision 6631.
  • Revision ID: ian.clatworthy@canonical.com-20090217014106-bdxy42qiqwroet2z
tweak from and merge formatting

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
        # user tuple is (name, email, secs-since-epoch, secs-offset-from-utc)
48
48
        committer = ('Joe Wong', 'joe@example.com', 1234567890, -6 * 3600)
49
49
        c = commands.CommitCommand("refs/heads/master", "bbb", None, committer,
50
 
            "release v1.0", "aaa", None, None)
 
50
            "release v1.0", ":aaa", None, None)
51
51
        self.assertEqualDiff(
52
52
            "commit refs/heads/master\n"
53
53
            "mark :bbb\n"
61
61
        # user tuple is (name, email, secs-since-epoch, secs-offset-from-utc)
62
62
        committer = ('Joe Wong', 'joe@example.com', 1234567890, -6 * 3600)
63
63
        c = commands.CommitCommand("refs/heads/master", None, None, committer,
64
 
            "release v1.0", "aaa", None, None)
 
64
            "release v1.0", ":aaa", None, None)
65
65
        self.assertEqualDiff(
66
66
            "commit refs/heads/master\n"
67
67
            "committer Joe Wong <joe@example.com> 1234567890 -0600\n"
88
88
        author = ('Sue Wong', 'sue@example.com', 1234565432, -6 * 3600)
89
89
        committer = ('Joe Wong', 'joe@example.com', 1234567890, -6 * 3600)
90
90
        c = commands.CommitCommand("refs/heads/master", "bbb", author,
91
 
            committer, "release v1.0", "aaa", None, None)
 
91
            committer, "release v1.0", ":aaa", None, None)
92
92
        self.assertEqualDiff(
93
93
            "commit refs/heads/master\n"
94
94
            "mark :bbb\n"
103
103
        # user tuple is (name, email, secs-since-epoch, secs-offset-from-utc)
104
104
        committer = ('Joe Wong', 'joe@example.com', 1234567890, -6 * 3600)
105
105
        c = commands.CommitCommand("refs/heads/master", "ddd", None, committer,
106
 
            "release v1.0", "aaa", ['bbb', 'ccc'], None)
 
106
                "release v1.0", ":aaa", [':bbb', ':ccc'], None)
107
107
        self.assertEqualDiff(
108
108
            "commit refs/heads/master\n"
109
109
            "mark :ddd\n"
124
124
        # user tuple is (name, email, secs-since-epoch, secs-offset-from-utc)
125
125
        committer = ('Joe Wong', 'joe@example.com', 1234567890, -6 * 3600)
126
126
        c = commands.CommitCommand("refs/heads/master", "bbb", None, committer,
127
 
            "release v1.0", "aaa", None, file_cmds)
 
127
            "release v1.0", ":aaa", None, file_cmds)
128
128
        self.assertEqualDiff(
129
129
            "commit refs/heads/master\n"
130
130
            "mark :bbb\n"