Exemplo n.º 1
0
def test_set_case_start_shout():
    """シーン設定(START_SHOUT)."""
    s = scene.Scene()
    s.set(scene.Scene.START_SHOUT)
    assert s.get() == scene.Scene.START_SHOUT
Exemplo n.º 2
0
def test_set_case_initialize_showdown():
    """シーン設定(INITIALIZE_SHOWDOWN)."""
    s = scene.Scene()
    s.set(scene.Scene.INITIALIZE_SHOWDOWN)
    assert s.get() == scene.Scene.INITIALIZE_SHOWDOWN
Exemplo n.º 3
0
def test_next_case_end():
    """次のシーン(END)."""
    s = scene.Scene()
    s.set(scene.Scene.END)
    s.next()
    assert s.get() == scene.Scene.END
Exemplo n.º 4
0
def test_set_case_initialize():
    """シーン設定(INITIALIZE)."""
    s = scene.Scene()
    s.set(scene.Scene.INITIALIZE)
    assert s.get() == scene.Scene.INITIALIZE
Exemplo n.º 5
0
def test_next_case_judge():
    """次のシーン(JUDGE)."""
    s = scene.Scene()
    s.set(scene.Scene.JUDGE)
    s.next()
    assert s.get() == scene.Scene.DRAW_SHOUT
Exemplo n.º 6
0
def test_next_case_draw_shout():
    """次のシーン(DRAW_SHOUT)."""
    s = scene.Scene()
    s.set(scene.Scene.DRAW_SHOUT)
    s.next()
    assert s.get() == scene.Scene.END
Exemplo n.º 7
0
def test_next_case_showdown():
    """次のシーン(SHOWDOWN)."""
    s = scene.Scene()
    s.set(scene.Scene.SHOWDOWN)
    s.next()
    assert s.get() == scene.Scene.JUDGE
Exemplo n.º 8
0
def test_set_case_draw_shout():
    """シーン設定(DRAW_SHOUT)."""
    s = scene.Scene()
    s.set(scene.Scene.DRAW_SHOUT)
    assert s.get() == scene.Scene.DRAW_SHOUT
Exemplo n.º 9
0
def test_next_case_start_shout():
    """次のシーン(START_SHOUT)."""
    s = scene.Scene()
    s.set(scene.Scene.START_SHOUT)
    s.next()
    assert s.get() == scene.Scene.INITIALIZE_SHOWDOWN
Exemplo n.º 10
0
def test_next_case_initialize_showdown():
    """次のシーン(INITIALIZE_SHOWDOWN)."""
    s = scene.Scene()
    s.set(scene.Scene.INITIALIZE_SHOWDOWN)
    s.next()
    assert s.get() == scene.Scene.SHOWDOWN
Exemplo n.º 11
0
def test_next_case_initialize():
    """次のシーン(INITIALIZE)."""
    s = scene.Scene()
    s.set(scene.Scene.INITIALIZE)
    s.next()
    assert s.get() == scene.Scene.START_SHOUT
Exemplo n.º 12
0
def test_set_case_end():
    """シーン設定(END)."""
    s = scene.Scene()
    s.set(scene.Scene.END)
    assert s.get() == scene.Scene.END
Exemplo n.º 13
0
def test_initialize_game_check():
    """ゲームの初期化後にINITIALIZE."""
    s = scene.Scene()
    s.initialize_game()
    assert s.get() == scene.Scene.INITIALIZE
Exemplo n.º 14
0
def test_set_case_showdown():
    """シーン設定(SHOWDOWN)."""
    s = scene.Scene()
    s.set(scene.Scene.SHOWDOWN)
    assert s.get() == scene.Scene.SHOWDOWN
Exemplo n.º 15
0
def test_get_default():
    """生成後のシーン取得."""
    s = scene.Scene()
    assert s.get() == scene.Scene.INITIALIZE
Exemplo n.º 16
0
 def __init__(self):
     """コンストラクタ."""
     self.__players = players.Players()
     self.__scene = scene.Scene()
Exemplo n.º 17
0
def test_set_case_judge():
    """シーン設定(JUDGE)."""
    s = scene.Scene()
    s.set(scene.Scene.JUDGE)
    assert s.get() == scene.Scene.JUDGE