blob: bb201035b866ee812bc0ba9a821323594bda59c3 [file] [log] [blame]
showarded2afea2009-07-07 20:54:07 +00001#!/usr/bin/python
2
3import unittest
4import common
5from autotest_lib.frontend import setup_django_environment
6from autotest_lib.frontend.afe import frontend_test_utils
7from autotest_lib.frontend.afe import models
8
9class SpecialTaskUnittest(unittest.TestCase,
10 frontend_test_utils.FrontendTestMixin):
11 def setUp(self):
12 self._frontend_common_setup()
13
14
15 def tearDown(self):
16 self._frontend_common_teardown()
17
18
19 def test_execution_path(self):
20 task = models.SpecialTask.objects.create(
21 host=self.hosts[0], task=models.SpecialTask.Task.VERIFY)
22
23 self.assertEquals(task.execution_path(), 'hosts/host1/1-verify')
24
25
26if __name__ == '__main__':
27 unittest.main()