# Path: nba_data/data/players.py
# class Player(BaseQueryParameter):
#     def __init__(self, name, id):
#         self.name = name
#         self.id = id
# 
#     def __unicode__(self):
#         return '{0} | {1}'.format(self.get_additional_unicode(), self.get_base_unicode())
# 
#     def get_base_unicode(self):
#         return 'name: {name} | id: {id}'.format(name=self.name, id=self.id)
# 
#     def get_additional_unicode(self):
#         raise NotImplementedError('Implement in concrete classes')
# 
#     @staticmethod
#     def get_query_parameter_name():
#         return "PlayerId"


from unittest import TestCase
from nba_data.data.players import Player



class TestPlayer(TestCase):
    def test_instantiation(self):
        player = Player("bae jadley", 1)
        self.assertEqual(player.name, "bae jadley")
        self.assertEqual(player.id, 1)

    def test_get_query_parameter_name(self):

# Path: nba_data/data/players.py
# class Player(BaseQueryParameter):
#     def __init__(self, name, id):
#         self.name = name
#         self.id = id
# 
#     def __unicode__(self):
#         return '{0} | {1}'.format(self.get_additional_unicode(), self.get_base_unicode())
# 
#     def get_base_unicode(self):
#         return 'name: {name} | id: {id}'.format(name=self.name, id=self.id)
# 
#     def get_additional_unicode(self):
#         raise NotImplementedError('Implement in concrete classes')
# 
#     @staticmethod
#     def get_query_parameter_name():
#         return "PlayerId"


# Path: tests/test_player.py
from unittest import TestCase
from nba_data.data.players import Player




class TestPlayer(TestCase):
    def test_instantiation(self):
        player = Player("bae jadley", 1)
        self.assertEqual(player.name, "bae jadley")
        self.assertEqual(player.id, 1)

    def test_get_query_parameter_name(self):

        self.assertEqual(Player.get_query_parameter_name(), "PlayerId")