コード例 #1
0
ファイル: test_scheduling.py プロジェクト: wica128/ceph
def test_bad_placements(placement):
    try:
        s = PlacementSpec.from_string(placement.split(' '))
        assert False
    except OrchestratorValidationError as e:
        pass
コード例 #2
0
def test_parse_placement_specs(test_input, expected):
    ret = PlacementSpec.from_string(test_input)
    assert str(ret) == expected