--- a/buildframework/helium/tools/common/python/lib/test/test_ant.py Wed Oct 28 14:39:48 2009 +0000
+++ b/buildframework/helium/tools/common/python/lib/test/test_ant.py Wed Dec 23 19:29:07 2009 +0200
@@ -32,6 +32,15 @@
# Property was defined, should provide value
assert ant.get_property('foo') == 'foo'
+
+
+def test_get_property_macro():
+ """ Test the support of get_property inside macro. """
+ # Property was not defined in Ant
+ assert ant.get_property('@{foo}') == None
+
+ # Property was defined, should provide value
+ assert ant.get_property('foo') == 'foo'
def test_get_previous_build_number():
@@ -50,4 +59,9 @@
assert ant.get_previous_build_number('oci.12') == 'oci.11'
- assert ant.get_previous_build_number('oci.patch.02') == 'oci.patch.01'
\ No newline at end of file
+ assert ant.get_previous_build_number('oci.patch.02') == 'oci.patch.01'
+
+ assert ant.get_previous_build_number('oci.patch.10') == 'oci.patch.9'
+
+ assert ant.get_previous_build_number('oci.patch.010') == 'oci.patch.009'
+
\ No newline at end of file