def get(self): media_id = self.request.arguments['media_id'] media = media_api.get_media(id)
def test_get_media(): id = 1 media = media_api.get_media(id) print media