49
49
"""Ensure sendbranchmail runs and sends email."""
51
51
branch, tree = self.createBranch()
53
53
branch, 1, 'from@example.org', 'body', True, 'foo')
55
55
retcode, stdout, stderr = run_script(
56
56
'cronscripts/sendbranchmail.py', [])
58
58
'INFO Creating lockfile: /var/lock/launchpad-sendbranchmail.lock\n'
60
61
self.assertEqual('', stdout)
61
62
self.assertEqual(0, retcode)