# Path: test/conftest.py



import mock
import pytest
from pytwitcherapi import models
from test import conftest



@pytest.fixture(scope='function')
def game():
    n = 'Test Game'
    g = models.Game(name=n, box={}, logo={}, twitchid=312, viewers=1, channels=1)
    return g


def test_repr(game):
    assert repr(game) == '<Game %s, id: %s>' % (game.name, game.twitchid)


def test_wrap_json(game1json):
    g = models.Game.wrap_json(game1json)

# Path: test/conftest.py



# Path: test/test_models_game.py
import mock
import pytest
from pytwitcherapi import models
from test import conftest




@pytest.fixture(scope='function')
def game():
    n = 'Test Game'
    g = models.Game(name=n, box={}, logo={}, twitchid=312, viewers=1, channels=1)
    return g


def test_repr(game):
    assert repr(game) == '<Game %s, id: %s>' % (game.name, game.twitchid)


def test_wrap_json(game1json):
    g = models.Game.wrap_json(game1json)

    conftest.assert_game_equals_json(g, game1json)