示例#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
示例#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
示例#3
0
def test_next_case_end():
    """次のシーン(END)."""
    s = scene.Scene()
    s.set(scene.Scene.END)
    s.next()
    assert s.get() == scene.Scene.END
示例#4
0
def test_set_case_initialize():
    """シーン設定(INITIALIZE)."""
    s = scene.Scene()
    s.set(scene.Scene.INITIALIZE)
    assert s.get() == scene.Scene.INITIALIZE
示例#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
示例#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
示例#7
0
def test_next_case_showdown():
    """次のシーン(SHOWDOWN)."""
    s = scene.Scene()
    s.set(scene.Scene.SHOWDOWN)
    s.next()
    assert s.get() == scene.Scene.JUDGE
示例#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
示例#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
示例#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
示例#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
示例#12
0
def test_set_case_end():
    """シーン設定(END)."""
    s = scene.Scene()
    s.set(scene.Scene.END)
    assert s.get() == scene.Scene.END
示例#13
0
def test_initialize_game_check():
    """ゲームの初期化後にINITIALIZE."""
    s = scene.Scene()
    s.initialize_game()
    assert s.get() == scene.Scene.INITIALIZE
示例#14
0
def test_set_case_showdown():
    """シーン設定(SHOWDOWN)."""
    s = scene.Scene()
    s.set(scene.Scene.SHOWDOWN)
    assert s.get() == scene.Scene.SHOWDOWN
示例#15
0
def test_get_default():
    """生成後のシーン取得."""
    s = scene.Scene()
    assert s.get() == scene.Scene.INITIALIZE
示例#16
0
 def __init__(self):
     """コンストラクタ."""
     self.__players = players.Players()
     self.__scene = scene.Scene()
示例#17
0
def test_set_case_judge():
    """シーン設定(JUDGE)."""
    s = scene.Scene()
    s.set(scene.Scene.JUDGE)
    assert s.get() == scene.Scene.JUDGE