# Path: foosball/games/forms.py
# class GameForm(SuperForm):
#     game = ModelFormField(GameModelForm)
#     team1 = ModelFormField(TeamModelForm)
#     team2 = ModelFormField(TeamModelForm)
# 
#     def is_valid(self):
#         return super().is_valid() & clean_team_forms(self.forms['team1'], self.forms['team2'])


import pytest
from django.utils.translation import ugettext_lazy as _
from foosball.games.forms import GameForm
# -*- coding: utf-8 -*-



@pytest.fixture
def four_users(user_factory):
    return user_factory.create_batch(4)


@pytest.fixture
def game_form_data():
    return {

# Path: foosball/games/forms.py
# class GameForm(SuperForm):
#     game = ModelFormField(GameModelForm)
#     team1 = ModelFormField(TeamModelForm)
#     team2 = ModelFormField(TeamModelForm)
# 
#     def is_valid(self):
#         return super().is_valid() & clean_team_forms(self.forms['team1'], self.forms['team2'])


# Path: foosball/games/tests/test_forms.py
import pytest
from django.utils.translation import ugettext_lazy as _
from foosball.games.forms import GameForm

# -*- coding: utf-8 -*-



@pytest.fixture
def four_users(user_factory):
    return user_factory.create_batch(4)


@pytest.fixture
def game_form_data():
    return {

        'form-game-played_at': '2016-03-03 12:00:00',