# coding: utf-8

"""
    DUPR Backend APIs

    Internal RESTful APIs to access DUPR ratings, users and provide matches.

    The version of the OpenAPI document: v1.0.0
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
"""  # noqa: E501


import unittest

from dupr_backend.models.match_round import MatchRound

class TestMatchRound(unittest.TestCase):
    """MatchRound unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional) -> MatchRound:
        """Test MatchRound
            include_optional is a boolean, when False only required
            params are included, when True both required and
            optional params are included """
        # uncomment below to create an instance of `MatchRound`
        """
        model = MatchRound()
        if include_optional:
            return MatchRound(
                serial = 1,
                matches = [
                    dupr_backend.models.seed_match.SeedMatch(
                        serial = 1, 
                        team1 = dupr_backend.models.league_teams.LeagueTeams(
                            registration_id = 56, 
                            player1 = dupr_backend.models.player.Player(
                                id = 56, 
                                full_name = '', 
                                first_name = '', 
                                last_name = '', 
                                username = '', 
                                display_username = True, 
                                email = '', 
                                verified_email = True, 
                                iso_alpha2_code = '', 
                                phone = '', 
                                verified_phone = True, 
                                short_address = '', 
                                formatted_address = '', 
                                latitude = 1.337, 
                                longitude = 1.337, 
                                gender = 'MALE', 
                                birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), 
                                age = 56, 
                                hand = 'RIGHT', 
                                reliability_score = 56, 
                                image_url = '', 
                                singles = 1.337, 
                                singles_verified = 1.337, 
                                singles_provisional = True, 
                                doubles = 1.337, 
                                doubles_verified = 1.337, 
                                doubles_provisional = True, 
                                default_rating = 'SINGLES', 
                                registration_type = 'INVITATION', 
                                registered = True, 
                                referral_code = '', 
                                sponsor = dupr_backend.models.sponsor.Sponsor(
                                    id = 56, 
                                    image_url = '', 
                                    sponsor_redirect_url = '', 
                                    sponsor_popup_heading = '', 
                                    description = '', 
                                    button_text = '', ), 
                                distance = '', 
                                distance_in_miles = 1.337, 
                                enable_privacy = True, 
                                status = 'ACTIVE', 
                                created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 
                                lucra_connected = True, 
                                singles_reliability = 1.337, 
                                doubles_reliability = 1.337, 
                                provisional_singles_rating = 1.337, 
                                provisional_doubles_rating = 1.337, 
                                location = '', ), 
                            player2 = dupr_backend.models.player.Player(
                                id = 56, 
                                full_name = '', 
                                first_name = '', 
                                last_name = '', 
                                username = '', 
                                display_username = True, 
                                email = '', 
                                verified_email = True, 
                                iso_alpha2_code = '', 
                                phone = '', 
                                verified_phone = True, 
                                short_address = '', 
                                formatted_address = '', 
                                latitude = 1.337, 
                                longitude = 1.337, 
                                gender = 'MALE', 
                                birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), 
                                age = 56, 
                                hand = 'RIGHT', 
                                reliability_score = 56, 
                                image_url = '', 
                                singles = 1.337, 
                                singles_verified = 1.337, 
                                singles_provisional = True, 
                                doubles = 1.337, 
                                doubles_verified = 1.337, 
                                doubles_provisional = True, 
                                default_rating = 'SINGLES', 
                                registration_type = 'INVITATION', 
                                registered = True, 
                                referral_code = '', 
                                distance = '', 
                                distance_in_miles = 1.337, 
                                enable_privacy = True, 
                                status = 'ACTIVE', 
                                created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 
                                lucra_connected = True, 
                                singles_reliability = 1.337, 
                                doubles_reliability = 1.337, 
                                provisional_singles_rating = 1.337, 
                                provisional_doubles_rating = 1.337, 
                                location = '', ), 
                            team_status = 'ACTIVE', 
                            partner_status = 'ACTIVE', 
                            payment_status = 'ACTIVE', ), 
                        team2 = dupr_backend.models.league_teams.LeagueTeams(
                            registration_id = 56, 
                            team_status = 'ACTIVE', 
                            partner_status = 'ACTIVE', 
                            payment_status = 'ACTIVE', ), 
                        bye = True, 
                        match_serial = 1, )
                    ],
                start_date = 'yyyy-MM-dd',
                end_date = 'yyyy-MM-dd',
                team_ids = ['9989596696']
            )
        else:
            return MatchRound(
                serial = 1,
                matches = [
                    dupr_backend.models.seed_match.SeedMatch(
                        serial = 1, 
                        team1 = dupr_backend.models.league_teams.LeagueTeams(
                            registration_id = 56, 
                            player1 = dupr_backend.models.player.Player(
                                id = 56, 
                                full_name = '', 
                                first_name = '', 
                                last_name = '', 
                                username = '', 
                                display_username = True, 
                                email = '', 
                                verified_email = True, 
                                iso_alpha2_code = '', 
                                phone = '', 
                                verified_phone = True, 
                                short_address = '', 
                                formatted_address = '', 
                                latitude = 1.337, 
                                longitude = 1.337, 
                                gender = 'MALE', 
                                birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), 
                                age = 56, 
                                hand = 'RIGHT', 
                                reliability_score = 56, 
                                image_url = '', 
                                singles = 1.337, 
                                singles_verified = 1.337, 
                                singles_provisional = True, 
                                doubles = 1.337, 
                                doubles_verified = 1.337, 
                                doubles_provisional = True, 
                                default_rating = 'SINGLES', 
                                registration_type = 'INVITATION', 
                                registered = True, 
                                referral_code = '', 
                                sponsor = dupr_backend.models.sponsor.Sponsor(
                                    id = 56, 
                                    image_url = '', 
                                    sponsor_redirect_url = '', 
                                    sponsor_popup_heading = '', 
                                    description = '', 
                                    button_text = '', ), 
                                distance = '', 
                                distance_in_miles = 1.337, 
                                enable_privacy = True, 
                                status = 'ACTIVE', 
                                created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 
                                lucra_connected = True, 
                                singles_reliability = 1.337, 
                                doubles_reliability = 1.337, 
                                provisional_singles_rating = 1.337, 
                                provisional_doubles_rating = 1.337, 
                                location = '', ), 
                            player2 = dupr_backend.models.player.Player(
                                id = 56, 
                                full_name = '', 
                                first_name = '', 
                                last_name = '', 
                                username = '', 
                                display_username = True, 
                                email = '', 
                                verified_email = True, 
                                iso_alpha2_code = '', 
                                phone = '', 
                                verified_phone = True, 
                                short_address = '', 
                                formatted_address = '', 
                                latitude = 1.337, 
                                longitude = 1.337, 
                                gender = 'MALE', 
                                birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), 
                                age = 56, 
                                hand = 'RIGHT', 
                                reliability_score = 56, 
                                image_url = '', 
                                singles = 1.337, 
                                singles_verified = 1.337, 
                                singles_provisional = True, 
                                doubles = 1.337, 
                                doubles_verified = 1.337, 
                                doubles_provisional = True, 
                                default_rating = 'SINGLES', 
                                registration_type = 'INVITATION', 
                                registered = True, 
                                referral_code = '', 
                                distance = '', 
                                distance_in_miles = 1.337, 
                                enable_privacy = True, 
                                status = 'ACTIVE', 
                                created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 
                                lucra_connected = True, 
                                singles_reliability = 1.337, 
                                doubles_reliability = 1.337, 
                                provisional_singles_rating = 1.337, 
                                provisional_doubles_rating = 1.337, 
                                location = '', ), 
                            team_status = 'ACTIVE', 
                            partner_status = 'ACTIVE', 
                            payment_status = 'ACTIVE', ), 
                        team2 = dupr_backend.models.league_teams.LeagueTeams(
                            registration_id = 56, 
                            team_status = 'ACTIVE', 
                            partner_status = 'ACTIVE', 
                            payment_status = 'ACTIVE', ), 
                        bye = True, 
                        match_serial = 1, )
                    ],
                start_date = 'yyyy-MM-dd',
        )
        """

    def testMatchRound(self):
        """Test MatchRound"""
        # inst_req_only = self.make_instance(include_optional=False)
        # inst_req_and_optional = self.make_instance(include_optional=True)

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