Module Import alias ImportFrom alias alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Str Assign NameStore Call NameLoad Str keyword Str keyword ListLoad Call NameLoad Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str NameLoad Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Str Assign NameStore Call NameLoad Str keyword Str keyword ListLoad Call NameLoad Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Call NameLoad Str Expr Call NameLoad AttributeLoad NameLoad attr Call NameLoad Str Expr Call NameLoad AttributeLoad NameLoad attr Call NameLoad Num decorator_list Call AttributeLoad NameLoad attr Str decorator_list
N/A N/A unittest hamcrest assert_that equal_to N/A mock fake_switches.command_processing.switch_tftp_parser SwitchTftpParser fake_switches.cisco.command_processor.config ConfigCommandProcessor fake_switches.switch_configuration SwitchConfiguration Port TestCiscoSwitchTftpParsing N/A N/A unittest TestCase N/A test_basic_parsing N/A N/A self tftp_reader_mock N/A N/A N/A N/A tftp_reader_mock return_value 
!
vlan 1000
name VLAN_1_0_0_0
!
!
vlan 2000
name VLAN_2_0_0_0
!
 N/A config N/A SwitchConfiguration 127.0.0.1 name my_switch ports N/A N/A Port GigabitEthernet0/1 N/A parser N/A SwitchTftpParser config N/A N/A N/A parser parse hostname filename ConfigCommandProcessor N/A N/A N/A tftp_reader_mock assert_called_with hostname filename N/A vlan1000 N/A N/A config get_vlan 1000 N/A N/A assert_that N/A vlan1000 name N/A equal_to VLAN_1_0_0_0 N/A vlan2000 N/A N/A config get_vlan 2000 N/A N/A assert_that N/A vlan2000 name N/A equal_to VLAN_2_0_0_0 N/A N/A N/A mock patch fake_switches.adapters.tftp_reader.read_tftp test_longer_parsing N/A N/A self tftp_reader_mock N/A N/A N/A N/A tftp_reader_mock return_value 
!
vlan 1000
name VLAN_1_0_0_0
!
!
interface GigabitEthernet0/1
no switchport access vlan 1
switchport access vlan 1000
!
!
interface GigabitEthernet0/1
description "Gigabit Ethernet 1 desc"
switchport
load-interval 30
switchport mode access
switchport access vlan 1000
switchport nonegotiate
spanning-tree portfast
spanning-tree bpdufilter enable
spanning-tree bpduguard enable
no loopback
no keepalive
!
 N/A config N/A SwitchConfiguration 127.0.0.1 name my_switch ports N/A N/A Port GigabitEthernet0/1 N/A parser N/A SwitchTftpParser config N/A N/A N/A parser parse hostname filename ConfigCommandProcessor N/A vlan1000 N/A N/A config get_vlan 1000 N/A N/A assert_that N/A vlan1000 name N/A equal_to VLAN_1_0_0_0 N/A eth01 N/A N/A config get_port GigabitEthernet0/1 N/A N/A assert_that N/A eth01 description N/A equal_to Gigabit Ethernet 1 desc N/A N/A assert_that N/A eth01 mode N/A equal_to access N/A N/A assert_that N/A eth01 access_vlan N/A equal_to 1000 N/A N/A N/A mock patch fake_switches.adapters.tftp_reader.read_tftp N/A