def test_parse_placement_specs(test_input, expected): ret = PlacementSpec.from_strings(test_input.split()) assert str(ret) == expected
def test_bad_placements(placement): try: s = PlacementSpec.from_strings(placement.split(' ')) assert False except OrchestratorValidationError as e: pass