Lab as a Service 2.0
[laas.git] / src / workflow / tests / test_steps_render.py
1 ##############################################################################
2 # Copyright (c) 2018 Parker Berberian, Sawyer Bergeron, and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 from django.test import TestCase, Client
10
11 class SuperViewTestCase(TestCase):
12     url = "/"
13     client = Client()
14
15     def test_get(self):
16         response = self.client.get(self.url)
17         self.assertLess(response.status_code, 300)
18
19
20 class DefineHardwareViewTestCase(SuperViewTestCase):
21     url = "/wf/workflow/step/define_hardware"
22
23 class DefineNetworkViewTestCase(SuperViewTestCase):
24     url = "/wf/workflow/step/define_net"
25
26 class ResourceMetaViewTestCase(SuperViewTestCase):
27     url = "/wf/workflow/step/resource_meta"
28
29 class BookingMetaViewTestCase(SuperViewTestCase):
30     url = "/wf/workflow/step/booking_meta"
31
32 class SoftwareSelectViewTestCase(SuperViewTestCase):
33     url = "/wf/workflow/step/software_select"
34
35 class ResourceSelectViewTestCase(SuperViewTestCase):
36     url = "/wf/workflow/step/resource_select"