Ticket #3957 (partial) - ganeti_webmgr uses ganeti python namespace:
[ganeti_webmgr.git] / ganeti_web / tests / views / virtual_machine / object_log.py
blobc2dcd947e09b23bbac51681e8c8d04983b2c5649
1 from ganeti_web.tests.views.virtual_machine.base import TestVirtualMachineViewsBase
3 __all__ = ['TestVirtualMachineLogViews']
5 global cluster, vm
7 class TestVirtualMachineLogViews(TestVirtualMachineViewsBase):
8 context = globals()
10 def test_view_object_log(self):
11 """
12 Tests view for object log:
14 Verifies:
15 * lack of permissions returns 403
16 * nonexistent Cluster returns 404
17 * nonexistent VirtualMachine returns 404
18 """
19 url = "/cluster/%s/%s/object_log/"
20 args = (cluster.slug, vm.hostname)
21 self.validate_get(url, args, 'object_log/log.html')