Add download_url to ContentFile, closes #575

This commit is contained in:
Wan Liuyang
2018-04-06 18:30:43 +08:00
parent eaa6a508f3
commit ca6fbc4552
3 changed files with 13 additions and 1 deletions
+1
View File
@@ -49,6 +49,7 @@ class ContentFile(Framework.TestCase):
self.assertEqual(len(self.file.content), 10212)
self.assertEqual(len(self.file.decoded_content), 7531)
self.assertEqual(self.file.sha, "5628799a7d517a4aaa0c1a7004d07569cd154df0")
self.assertEqual(self.file.download_url, "https://raw.githubusercontent.com/jacquev6/PyGithub/master/README.md")
# test __repr__() based on this attributes
self.assertEqual(self.file.__repr__(), 'ContentFile(path="ReadMe.md")')