# coding: utf-8

"""
    Singlearity Baseball API

    Baseball optimization API using machine learning  # noqa: E501

    The version of the OpenAPI document: 0.1.1
    Generated by: https://openapi-generator.tech
"""


from __future__ import absolute_import

import unittest
import datetime

import singlearity
from singlearity.models.body_z_get_vars_get import BodyZGetVarsGet  # noqa: E501
from singlearity.rest import ApiException

class TestBodyZGetVarsGet(unittest.TestCase):
    """BodyZGetVarsGet unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional):
        """Test BodyZGetVarsGet
            include_option is a boolean, when False only required
            params are included, when True both required and
            optional params are included """
        # model = singlearity.models.body_z_get_vars_get.BodyZGetVarsGet()  # noqa: E501
        if include_optional :
            return BodyZGetVarsGet(
                aaa = singlearity.models.atmosphere.Atmosphere(
                    venue = {"id":1,"name":"Angel Stadium","home_team_abbrev":"LAA","home_team_id":108}, 
                    home_team = {"abbreviation":"LAA","division":"American League West","league":"American League","id":108,"name":"Los Angeles Angels","team_name":"Angels","venue":{"name":"Angel Stadium","home_team_abbrev":"LAA","home_team_id":108}}, 
                    temperature = 56, ), 
                mat = singlearity.models.matchup.Matchup(
                    batter = {"full_name":"Mike Trout","position":"CF","mlb_id":545361,"debut_date":"2011-07-08","team_id":108,"team_abbrev":"LAA","active":true,"bat_side":"R","birth_country":"USA","birth_date":"1991-08-07","current_age":28,"photo_url":"https://securea.mlb.com/mlb/images/players/head_shot/545361.jpg"}, 
                    pitcher = {"full_name":"Mike Trout","position":"CF","mlb_id":545361,"debut_date":"2011-07-08","team_id":108,"team_abbrev":"LAA","active":true,"bat_side":"R","birth_country":"USA","birth_date":"1991-08-07","current_age":28,"photo_url":"https://securea.mlb.com/mlb/images/players/head_shot/545361.jpg"}, 
                    atmosphere = singlearity.models.atmosphere.Atmosphere(
                        venue = {"id":1,"name":"Angel Stadium","home_team_abbrev":"LAA","home_team_id":108}, 
                        home_team = {"abbreviation":"LAA","division":"American League West","league":"American League","id":108,"name":"Los Angeles Angels","team_name":"Angels","venue":{"name":"Angel Stadium","home_team_abbrev":"LAA","home_team_id":108}}, 
                        temperature = 56, ), 
                    state = {"on_1b":true,"on_2b":false,"on_3b":false,"inning":5,"outs":1,"top":false,"bat_score":3,"fld_score":2,"bat_lineup_order":6,"fld_lineup_order":9,"pitch_number":9,"frame_runs_scored":0}, 
                    date = '2019-09-28', ), 
                pas = singlearity.models.pa_sim.PaSim(
                    matchups = [
                        singlearity.models.matchup.Matchup(
                            batter = {"full_name":"Mike Trout","position":"CF","mlb_id":545361,"debut_date":"2011-07-08","team_id":108,"team_abbrev":"LAA","active":true,"bat_side":"R","birth_country":"USA","birth_date":"1991-08-07","current_age":28,"photo_url":"https://securea.mlb.com/mlb/images/players/head_shot/545361.jpg"}, 
                            pitcher = {"full_name":"Mike Trout","position":"CF","mlb_id":545361,"debut_date":"2011-07-08","team_id":108,"team_abbrev":"LAA","active":true,"bat_side":"R","birth_country":"USA","birth_date":"1991-08-07","current_age":28,"photo_url":"https://securea.mlb.com/mlb/images/players/head_shot/545361.jpg"}, 
                            atmosphere = singlearity.models.atmosphere.Atmosphere(
                                venue = {"id":1,"name":"Angel Stadium","home_team_abbrev":"LAA","home_team_id":108}, 
                                home_team = {"abbreviation":"LAA","division":"American League West","league":"American League","id":108,"name":"Los Angeles Angels","team_name":"Angels","venue":{"name":"Angel Stadium","home_team_abbrev":"LAA","home_team_id":108}}, 
                                temperature = 56, ), 
                            state = {"on_1b":true,"on_2b":false,"on_3b":false,"inning":5,"outs":1,"top":false,"bat_score":3,"fld_score":2,"bat_lineup_order":6,"fld_lineup_order":9,"pitch_number":9,"frame_runs_scored":0}, 
                            date = '2019-09-28', )
                        ], ), 
                st = {"on_1b":true,"on_2b":false,"on_3b":false,"inning":5,"outs":1,"top":false,"bat_score":3,"fld_score":2,"bat_lineup_order":6,"fld_lineup_order":9,"pitch_number":9,"frame_runs_scored":0}
            )
        else :
            return BodyZGetVarsGet(
                aaa = singlearity.models.atmosphere.Atmosphere(
                    venue = {"id":1,"name":"Angel Stadium","home_team_abbrev":"LAA","home_team_id":108}, 
                    home_team = {"abbreviation":"LAA","division":"American League West","league":"American League","id":108,"name":"Los Angeles Angels","team_name":"Angels","venue":{"name":"Angel Stadium","home_team_abbrev":"LAA","home_team_id":108}}, 
                    temperature = 56, ),
                mat = singlearity.models.matchup.Matchup(
                    batter = {"full_name":"Mike Trout","position":"CF","mlb_id":545361,"debut_date":"2011-07-08","team_id":108,"team_abbrev":"LAA","active":true,"bat_side":"R","birth_country":"USA","birth_date":"1991-08-07","current_age":28,"photo_url":"https://securea.mlb.com/mlb/images/players/head_shot/545361.jpg"}, 
                    pitcher = {"full_name":"Mike Trout","position":"CF","mlb_id":545361,"debut_date":"2011-07-08","team_id":108,"team_abbrev":"LAA","active":true,"bat_side":"R","birth_country":"USA","birth_date":"1991-08-07","current_age":28,"photo_url":"https://securea.mlb.com/mlb/images/players/head_shot/545361.jpg"}, 
                    atmosphere = singlearity.models.atmosphere.Atmosphere(
                        venue = {"id":1,"name":"Angel Stadium","home_team_abbrev":"LAA","home_team_id":108}, 
                        home_team = {"abbreviation":"LAA","division":"American League West","league":"American League","id":108,"name":"Los Angeles Angels","team_name":"Angels","venue":{"name":"Angel Stadium","home_team_abbrev":"LAA","home_team_id":108}}, 
                        temperature = 56, ), 
                    state = {"on_1b":true,"on_2b":false,"on_3b":false,"inning":5,"outs":1,"top":false,"bat_score":3,"fld_score":2,"bat_lineup_order":6,"fld_lineup_order":9,"pitch_number":9,"frame_runs_scored":0}, 
                    date = '2019-09-28', ),
                pas = singlearity.models.pa_sim.PaSim(
                    matchups = [
                        singlearity.models.matchup.Matchup(
                            batter = {"full_name":"Mike Trout","position":"CF","mlb_id":545361,"debut_date":"2011-07-08","team_id":108,"team_abbrev":"LAA","active":true,"bat_side":"R","birth_country":"USA","birth_date":"1991-08-07","current_age":28,"photo_url":"https://securea.mlb.com/mlb/images/players/head_shot/545361.jpg"}, 
                            pitcher = {"full_name":"Mike Trout","position":"CF","mlb_id":545361,"debut_date":"2011-07-08","team_id":108,"team_abbrev":"LAA","active":true,"bat_side":"R","birth_country":"USA","birth_date":"1991-08-07","current_age":28,"photo_url":"https://securea.mlb.com/mlb/images/players/head_shot/545361.jpg"}, 
                            atmosphere = singlearity.models.atmosphere.Atmosphere(
                                venue = {"id":1,"name":"Angel Stadium","home_team_abbrev":"LAA","home_team_id":108}, 
                                home_team = {"abbreviation":"LAA","division":"American League West","league":"American League","id":108,"name":"Los Angeles Angels","team_name":"Angels","venue":{"name":"Angel Stadium","home_team_abbrev":"LAA","home_team_id":108}}, 
                                temperature = 56, ), 
                            state = {"on_1b":true,"on_2b":false,"on_3b":false,"inning":5,"outs":1,"top":false,"bat_score":3,"fld_score":2,"bat_lineup_order":6,"fld_lineup_order":9,"pitch_number":9,"frame_runs_scored":0}, 
                            date = '2019-09-28', )
                        ], ),
                st = {"on_1b":true,"on_2b":false,"on_3b":false,"inning":5,"outs":1,"top":false,"bat_score":3,"fld_score":2,"bat_lineup_order":6,"fld_lineup_order":9,"pitch_number":9,"frame_runs_scored":0},
        )

    def testBodyZGetVarsGet(self):
        """Test BodyZGetVarsGet"""
        inst_req_only = self.make_instance(include_optional=False)
        inst_req_and_optional = self.make_instance(include_optional=True)


if __name__ == '__main__':
    unittest.main()
