def draft_group_details(draft_group_id): response = requests.get(url=urls.draft_group_url(draft_group_id), params={'format': 'json'}) response.raise_for_status() return translate_draft_group(response.json())
def test_draft_group_url(self): self.assertEqual( draft_group_url("jaebaebae"), "https://api.draftkings.com/draftgroups/v1/jaebaebae")