Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CommitResultTest(unittest.TestCase):
- def setUp(self):
- self.raw_commit_message = 'raw_commit_message'
- self.commit_sha = 'commit_sha'
- self.commit_type = ['commit_type']
- self.modified_files = ['modified_files']
- self.added_files = ['added_files']
- self.deleted_files = ['deleted_files']
- def test_commitresult_object_repr(self):
- repr_result = repr(CommitResult(VCSCommitBear,
- self.raw_commit_message,
- self.commit_sha,
- self.commit_type,
- self.modified_files,
- self.added_files,
- self.deleted_files,))
- repr_regex = (
- r"<CommitResult object\(id=.+, origin=\'bearclass\', "
- r"raw_commit_message=\'.+\', "
- r"commit_sha=\'.+\', "
- r"commit_type=\[.+\], "
- r"modified_files=\[.+\], "
- r"added_files=\[.+\], "
- r"deleted_files=\[.+\], "
- r"message=\'HEAD commit information\'\) at .+>"
- )
- self.assertRegex(repr_result, repr_regex)
Add Comment
Please, Sign In to add comment