# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## H3C.VRP.get_version test
## Auto-generated by manage.py debug-script at 2011-03-11 09:10:35
##----------------------------------------------------------------------
## Copyright (C) 2007-2011 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class H3C_VRP_get_version_Test(ScriptTestCase):
    script="H3C.VRP.get_version"
    vendor="H3C"
    platform='4200G'
    version='3.01.00s56'
    input={}
    result={'platform': '4200G 48-Port', 'vendor': 'H3C', 'version': '3.01.00s56'}
    motd='\n'
    cli={
## 'display version'
'display version': """
%Dec  9 17:00:41:524 2000 4200G SHELL/5/LOGIN:- 1 - admin(172.20.0.181) in unit1 logindisplay version
3Com Corporation
Switch 4200G 48-Port Software Version 3Com OS V3.01.00s56
Copyright(c) 2004-2006 3Com Corporation and its licensors, All rights reserved.
Switch 4200G 48-Port uptime is 35 weeks, 6 days, 17 hours, 5 minutes

Switch 4200G 48-Port with 1 MIPS Processor
64M   bytes DRAM
16M   bytes Flash Memory
Config Register points to FLASH

Hardware Version is REV.B
CPLD Version is 002
Bootrom Version is 1.00
[SubSlot 0] 48 GE ( 4 COMBO ) Hardware Version is REV.B
[SubSlot 1] 1  XGE Hardware Version is REV.B
""",
}
    snmp_get={}
    snmp_getnext={}
