diff --git a/systemvm/test/python/TestCsAddress.py b/systemvm/test/python/TestCsAddress.py new file mode 100644 index 00000000000..f4430aeaa55 --- /dev/null +++ b/systemvm/test/python/TestCsAddress.py @@ -0,0 +1,16 @@ +import unittest +from cs.CsAddress import CsAddress +import merge + + +class TestCsAddress(unittest.TestCase): + + def setUp(self): + merge.dataBag.DPATH = "." + + def test_needs_vrrp(self): + csaddress = CsAddress("ips", {}) + self.assertTrue(csaddress.needs_vrrp({"nw_type": "public"})) + +if __name__ == '__main__': + unittest.main() diff --git a/systemvm/test/python/runtests.sh b/systemvm/test/python/runtests.sh new file mode 100644 index 00000000000..be090b3d970 --- /dev/null +++ b/systemvm/test/python/runtests.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# requires netaddr + +export PYTHONPATH="../../patches/debian/config/opt/cloud/bin/" +export PYTHONDONTWRITEBYTECODE=False + +nosetests .