diff --git a/tests/autopkgtest.py b/tests/autopkgtest.py
index 5d85dc7..d213d0b 100755
--- a/tests/autopkgtest.py
+++ b/tests/autopkgtest.py
@@ -302,6 +302,17 @@ args.func()
'
autopkgtest for lightgreen 1: PASS',
'autopkgtest for darkgreen 1: RUNNING'])
+ def test_result_from_older_version(self):
+ '''test result from older version than the uploaded one'''
+
+ self.do_test(
+ [('green', {'Version': '1.1~beta', 'Depends': 'libc6 (>= 0.9), libgreen1'})],
+ 'green 1.1~alpha PASS green 1.1~beta\n',
+ False,
+ [r'\bgreen\b.*>1 to .*>1.1~beta<',
+ # it's not entirely clear what precisely it should say here
+ 'autopkgtest for green 1.1~beta: RUNNING'])
+
def do_test(self, unstable_add, adt_request, considered, expect=None,
no_expect=None):
for (pkg, fields) in unstable_add: