376
376
self.assertEqual(None, self.branch.get_push_location())
378
378
def test_get_push_location_exact(self):
380
382
fn = branches_config_filename()
382
383
print >> open(fn, 'wt'), ("[%s]\n"
385
386
self.assertEqual("foo", self.branch.get_push_location())
387
388
def test_set_push_location(self):
389
392
fn = branches_config_filename()
391
393
self.branch.set_push_location('foo')
392
394
self.assertFileEqual("[%s]\n"
393
395
"push_location = foo" % getcwd(),