'If there are no changes from trunk, then no need to check the
newsfragments'

def test_noChangeFromTrunk(self):

    runCommand(['git', 'checkout', '-b', 'mypatch'], cwd=self.repo.path)
    logs = []
    with self.assertRaises(SystemExit) as e:
        CheckNewsfragmentScript(logs.append).main([self.repo.path])
    self.assertEqual(e.exception.args, (0,))
    self.assertEqual(logs[(-1)], 'On    trunk    or    no    diffs    from    trunk;    no    need    to    look    at    this.')
