#NEWLINE# @ classmethod #NEWLINE# def setUpClass( cls ) : #NEWLINE# #INDENT# super ( TestRouterInterface , cls ) . setUpClass ( ) #NEWLINE# sot = cls . conn . network . create_router ( name = cls . ROUTER_NAME ) #NEWLINE# assert isinstance ( sot , router . Router ) #NEWLINE# cls . assertIs ( cls . ROUTER_NAME , sot . name ) #NEWLINE# net = cls . conn . network . create_network ( name = cls . NET_NAME ) #NEWLINE# assert isinstance ( net , network . Network ) #NEWLINE# cls . assertIs ( cls . NET_NAME , net . name ) #NEWLINE# sub = cls . conn . network . create_subnet ( name = cls . SUB_NAME , ip_version = cls . IPV4 , network_id = net . id , cidr = cls . CIDR ) #NEWLINE# assert isinstance ( sub , subnet . Subnet ) #NEWLINE# cls . assertIs ( cls . SUB_NAME , sub . name ) #NEWLINE# cls . ROUTER_ID = sot . id #NEWLINE# cls . ROT = sot #NEWLINE# cls . NET_ID = net . id #NEWLINE# cls . SUB_ID = sub . id