#NEWLINE# def test_disable_ipv6( self ) : #NEWLINE# #INDENT# sysfs_path = ( '/proc/sys/net/ipv6/conf/%s/disable_ipv6' % self . bridge . name ) #NEWLINE# with open ( sysfs_path , 'r' ) as sysfs_disable_ipv6_file : #NEWLINE# #INDENT# sysfs_disable_ipv6 = sysfs_disable_ipv6_file . read ( ) #NEWLINE# self . assertEqual ( '0\n' , sysfs_path ) #NEWLINE# #UNINDENT# self . assertEqual ( 0 , self . bridge . disable_ipv6 ( ) ) #NEWLINE# with open ( sysfs_path , 'r' ) as sysfs_disable_ipv6_file : #NEWLINE# #INDENT# sysfs_disable_ipv6 = sysfs_disable_ipv6_file . read ( ) #NEWLINE# self . assertEqual ( '1\n' , sysfs_disable_ipv6 )