def test_hitter_typical(self): CSV_LOCATION = "players.csv" NAME = "Jon Jay" TEAM = "SD" csv_dict = Draftkings.get_csv_dict(CSV_LOCATION) try: csv_entry = csv_dict[NAME.lower() + TEAM.lower()] except KeyError: self.assertTrue(False) self.assertEqual(int(csv_entry["Salary"]), 2700)
def test_pitcher_typical(self): CSV_LOCATION = "players.csv" NAME = "Felix Hernandez" TEAM = "Sea" csv_dict = Draftkings.get_csv_dict(CSV_LOCATION) try: csv_entry = csv_dict[NAME.lower() + TEAM.lower()] except KeyError: self.assertTrue(False) self.assertEqual(int(csv_entry["Salary"]), 10400)