import unittest
import os
import gzip
import bs4
import logging
from classes import (
    NbaTeam
)

class MockRequests:
    def get(self, url):
        pass

class TestNbaTeamPage(unittest.TestCase):
    # read html file and ungzip

    @classmethod
    def setUpClass(cls):
        requester = MockRequests()
        # file_path = os.path.join(os.path.dirname(__file__), 'mock_data/nba_roster_lakers.htm.gz')
        # f = gzip.open(file_path)
        # content = f.read()

        cls.nba_team = NbaTeam('okc', requester, bs4)
        cls.roster_text = content


    def test_get_page(self):
        team_page = self.nba_team.get_page(self.nba_team.url)
        self.assertFalse(self.nba_team.failed)

if __name__ == '__main__':
    unittest.main()
@@ -94,16 +94,119 @@
 Team%0A)%0A%0A
+logger = logging.getLogger()%0Alogger.setLevel(logging.INFO)%0Alogger.addHandler(logging.StreamHandler())%0A%0A
 class Mo
@@ -383,45 +383,8 @@
     
- requester = MockRequests()%0A        #
  fil
@@ -482,11 +482,23 @@
     
-# f
+cls.roster_text
  = g
@@ -516,16 +516,23 @@
 le_path)
+.read()
 %0A       
@@ -536,29 +536,76 @@
     
-# content = f.read()%0A
+cls.requester = MockRequests()%0A%0A    @classmethod%0A    def setUp(cls):
 %0A   
@@ -639,16 +639,20 @@
 ('okc', 
+cls.
 requeste
@@ -675,30 +675,59 @@
 cls.
-roster_text = content%0A
+parsed = cls.nba_team.convert_page(cls.roster_text)
 %0A%0A  
@@ -741,24 +741,40 @@
 est_get_page
+_should_not_fail
 (self):%0A    
@@ -879,16 +879,499 @@
 ailed)%0A%0A
+    def test_convert_page_should_not_fail(self):%0A        parsed_page = self.nba_team.convert_page(self.roster_text)%0A        self.assertFalse(self.nba_team.failed)%0A%0A    def test_parse_roster_should_return_player_ids(self):%0A        expected = %5B'5383', '4285', '5357', '3824', '5329', '5601', '4794', '5487', '5762',%0A            '5318', '5011', '5433', '3339', '4294', '5663'%5D%0A        player_ids = self.nba_team.parse_roster(self.parsed)%0A        self.assertEqual(expected, player_ids)%0A%0A
 if __nam

Add more NbaTeam class tests