Little improvement to select test

This commit is contained in:
Michal Hrusecky 2014-03-04 14:53:17 +01:00 committed by Michal Hrusecky
parent 673d08b8a3
commit a4455ac6d9

View File

@ -48,6 +48,7 @@ class TestSelect(unittest.TestCase):
tmpl = Template(self.obs._get_fixture_content('project-a-metalist.xml'))
self.obs.responses['GET']['/source/openSUSE:Factory:Staging:A/_project'] = tmpl.substitute({'mtime': 1393152777})
self.assertEqual(False, SelectCommand(self.obs.api).perform('openSUSE:Factory:Staging:A', ['bash']))
self.assertEqual(sys.stdout.getvalue(), "Freeze the prj first\n")
# make sure the project is frozen recently for other tests
self.obs.responses['GET']['/source/openSUSE:Factory:Staging:A/_project'] = tmpl.substitute({'mtime': str(int(time.time()) - 1000) })