def test_commmit_nomessage(self):
     transaction.begin()
     trans = transaction.current()
     trans.set_blob(['foo'], 'bar'.encode('utf-8'))
     self.assert_commit_count(0)
     assert_raises(GitError, transaction.commit)
     self.assert_commit_count(0)
     transaction.rollback()
示例#2
0
 def test_commmit_nomessage(self):
     transaction.begin()
     trans = transaction.current()
     trans.set_blob(['foo'], 'bar'.encode('utf-8'))
     self.assert_commit_count(0)
     assert_raises(GitError, transaction.commit)
     self.assert_commit_count(0)
     transaction.rollback()
 def test_commit_nochanges(self):
     transaction.begin()
     self.assert_commit_count(0)
     assert_raises(GitError, transaction.commit)
     self.assert_commit_count(0)
     transaction.rollback()
示例#4
0
 def test_commit_nochanges(self):
     transaction.begin()
     self.assert_commit_count(0)
     assert_raises(GitError, transaction.commit)
     self.assert_commit_count(0)
     transaction.rollback()