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