Example #1
0
 def test_avatar_uploadto(self):
     path = avatar_upload(self.team, "hello world.jpg")
     self.assertTrue(path.startswith("avatars"))
     self.assertTrue(path.endswith(".jpg"))
Example #2
0
 def test_avatar_upload_filename(self):
     path = avatar_upload(None, "MyHeadshot.png")
     self.assertTrue(path.startswith("avatars"))
     self.assertTrue(path.endswith(".png"))