コード例 #1
0
ファイル: test.py プロジェクト: youdonotexist/gjms
def test_plat_game_relation_game():
    """ Test platform-game relationship from a game viewpoint. """

    game = games.get("Flingler")
    platform = platforms.get("Windows")
    platform2 = platforms.get("Android")

    game.platforms.append(platform)
    game.platforms.append(platform2)

    assert platform in game.platforms
    assert platform2 in game.platforms
コード例 #2
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
def test_plat_game_relation_game():
    """ Test platform-game relationship from a game viewpoint. """

    game = games.get("Flingler")
    platform = platforms.get("Windows")
    platform2 = platforms.get("Android")

    game.platforms.append(platform)
    game.platforms.append(platform2)

    assert platform in game.platforms
    assert platform2 in game.platforms
コード例 #3
0
ファイル: test.py プロジェクト: youdonotexist/gjms
def test_delete_platform():
    """ Test platform deleting. """

    platform = platforms.get("Windows")
    platform.delete()

    assert_raises(exceptions.NonExistentPlatform, platforms.get, "Windows")
コード例 #4
0
ファイル: test.py プロジェクト: youdonotexist/gjms
def test_plat_game_relation_plat():
    """ Test platform-game relationship from a platform viewpoint. """

    platform = platforms.get("Android")
    game = games.get("Flingler")

    assert game in platform.games
コード例 #5
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
def test_delete_platform():
    """ Test platform deleting. """

    platform = platforms.get("Windows")
    platform.delete()

    assert_raises(exceptions.NonExistentPlatform, platforms.get, "Windows")
コード例 #6
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
def test_plat_game_relation_plat():
    """ Test platform-game relationship from a platform viewpoint. """

    platform = platforms.get("Android")
    game = games.get("Flingler")

    assert game in platform.games
コード例 #7
0
ファイル: test.py プロジェクト: youdonotexist/gjms
def test_platform_get():
    """ Test platform getting. """

    platform = platforms.get("Windows")

    assert type(platform) == models.Platform
コード例 #8
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
def test_platform_get():
    """ Test platform getting. """

    platform = platforms.get("Windows")

    assert type(platform) == models.Platform