Example #1
0
from agdevicecontrol.common.version import version, toFloat

f = open("DeviceControlService.svc",'w')
f.write("""
[ServiceDescription]
name = DeviceControlService
description = Remote Control of AG Hardware Resources
capabilities = Capability1
executable = DeviceControlService.py
platform = neutral
version = %4.2f

[Capability1]
role = producer
type = agdevicecontrol
""" % toFloat(version))
f.close()



from zipfile import ZipFile
import os, os.path

manifest = [
    "DeviceControlService.py",
    "DeviceControlService.svc",
    "main.py",
    "aggregator.conf"
    ]

# needs to run from script directory
Example #2
0
 def test_version_as_float(self):
     assert version.toFloat("0.4.2") == 0.42