def setup_class(cls):
        TestPutExistingVlan.test_var = UpdateExistingVlan()
        get_server_crt(cls.test_var.net.switches[0])
        rest_sanity_check(cls.test_var.switch_ip)
        create_fake_vlan(TestPutExistingVlan.test_var.vlan_path,
                         TestPutExistingVlan.test_var.switch_ip,
                         TestPutExistingVlan.test_var.vlan_name,
                         TestPutExistingVlan.test_var.vlan_id)

        cls.container_id = get_container_id(cls.test_var.net.switches[0])
    def setup_class(cls):
        TestGetVlanByName.test_var = QueryVlanByName()
        get_server_crt(cls.test_var.net.switches[0])
        rest_sanity_check(cls.test_var.switch_ip)
        cls.fake_data = create_fake_vlan(TestGetVlanByName.test_var.vlan_path,
                                         TestGetVlanByName.test_var.switch_ip,
                                         TestGetVlanByName.test_var.vlan_name,
                                         TestGetVlanByName.test_var.vlan_id)

        cls.container_id = get_container_id(cls.test_var.net.switches[0])
 def setup_class(cls):
     Test_ModifyPort.test_var = ModifyPortTest()
     get_server_crt(cls.test_var.net.switches[0])
     rest_sanity_check(cls.test_var.SWITCH_IP)
     # Add a test port
     info("\n########## Creating Test Port  ##########\n")
     status_code, response = create_test_port(cls.test_var.SWITCH_IP)
     assert status_code == httplib.CREATED, "Port not created."\
         "Response %s" % response
     info("### Test Port Created  ###\n")
     cls.container_id = get_container_id(cls.test_var.net.switches[0])
 def setup_class(cls):
     Test_CreatePort.test_var = CreatePortTest()
     get_server_crt(cls.test_var.net.switches[0])
     rest_sanity_check(cls.test_var.SWITCH_IP)
     cls.container_id = get_container_id(cls.test_var.net.switches[0])
 def setup_class(cls):
     TestPostBasicVlan.test_var = CreateBasicVlan()
     get_server_crt(cls.test_var.net.switches[0])
     rest_sanity_check(cls.test_var.switch_ip)
     cls.container_id = get_container_id(cls.test_var.net.switches[0])
 def setup_class(cls):
     Test_DynamicCategory.test_var = DynamicCategoryTest()
     get_server_crt(cls.test_var.net.switches[0])
     rest_sanity_check(cls.test_var.SWITCH_IP)
     cls.container_id = get_container_id(cls.test_var.net.switches[0])