Exemplo n.º 1
0
    def test_fb_no_doc_returns_roster(self):
        flexmock(Team) \
            .should_receive('__init__') \
            .and_return(None)

        team = Team('Tottenham Hotspur')
        team._squad_id = '361ca564'

        assert len(team.roster) == 0
Exemplo n.º 2
0
    def test_invalid_http_page_error(self, *args, **kwargs):
        flexmock(Team) \
            .should_receive('__init__') \
            .and_return(None)
        team = Team(None)
        team._squad_id = ''

        output = team._pull_team_page()

        assert not output