def METHOD_NAME(self):
    self.execute_command.side_effect = [(1, "", ""),  # not git
                                        (1, "", "")]  # is svn
    self.assertRaises(PyBuilderException, getattr, VCSRevision(), "count")