/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 breezy/tests/blackbox/test_remember_option.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 18:59:44 UTC
  • mfrom: (7143.15.15 more-cleanups)
  • Revision ID: breezy.the.bot@gmail.com-20181116185944-biefv1sub37qfybm
Sprinkle some PEP8iness.

Merged from https://code.launchpad.net/~jelmer/brz/more-cleanups/+merge/358611

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
                       TestRememberMixin):
76
76
 
77
77
    working_dir = 'work'
78
 
    command = ['send', '-o-',]
79
 
    first_use_args = ['../parent', '../grand_parent',]
 
78
    command = ['send', '-o-', ]
 
79
    first_use_args = ['../parent', '../grand_parent', ]
80
80
    next_uses_args = ['../new_parent', '../new_grand_parent']
81
81
 
82
82
    def setUp(self):
99
99
            $ brz commit -m '%(working_dir)s'
100
100
            $ cd ..
101
101
            ''' % {'working_dir': self.working_dir},
102
 
                        null_output_matches_anything=True)
 
102
            null_output_matches_anything=True)
103
103
 
104
104
    def setup_next_uses(self):
105
105
        # Do a first send that remembers the locations
125
125
                       TestRememberMixin):
126
126
 
127
127
    working_dir = 'work'
128
 
    command = ['push',]
129
 
    first_use_args = ['../target',]
 
128
    command = ['push', ]
 
129
    first_use_args = ['../target', ]
130
130
    next_uses_args = ['../new_target']
131
131
 
132
132
    def setUp(self):
139
139
            $ brz commit -m 'initial commit'
140
140
            $ cd ..
141
141
            ''' % {'working_dir': self.working_dir},
142
 
                        null_output_matches_anything=True)
 
142
            null_output_matches_anything=True)
143
143
 
144
144
    def setup_next_uses(self):
145
145
        # Do a first push that remembers the location
151
151
            $ brz commit -m 'new content'
152
152
            $ cd ..
153
153
            ''' % {'working_dir': self.working_dir},
154
 
                        null_output_matches_anything=True)
 
154
            null_output_matches_anything=True)
155
155
 
156
156
    def assertLocations(self, expected_locations):
157
157
        br, _ = branch.Branch.open_containing(self.working_dir)
168
168
                       TestRememberMixin):
169
169
 
170
170
    working_dir = 'work'
171
 
    command = ['pull',]
172
 
    first_use_args = ['../parent',]
 
171
    command = ['pull', ]
 
172
    first_use_args = ['../parent', ]
173
173
    next_uses_args = ['../new_parent']
174
174
 
175
175
    def setUp(self):
183
183
            $ cd ..
184
184
            $ brz init %(working_dir)s
185
185
            ''' % {'working_dir': self.working_dir},
186
 
                        null_output_matches_anything=True)
 
186
            null_output_matches_anything=True)
187
187
 
188
188
    def setup_next_uses(self):
189
189
        # Do a first push that remembers the location
196
196
            $ brz commit -m 'new parent'
197
197
            $ cd ..
198
198
            ''' % {'working_dir': self.working_dir},
199
 
                        null_output_matches_anything=True)
 
199
            null_output_matches_anything=True)
200
200
 
201
201
    def assertLocations(self, expected_locations):
202
202
        br, _ = branch.Branch.open_containing(self.working_dir)