<s> """<STR_LIT>""" <EOL> from nova import ipv6 <EOL> from nova import test <EOL> class IPv6RFC2462TestCase ( test . NoDBTestCase ) : <EOL> """<STR_LIT>""" <EOL> def setUp ( self ) : <EOL> super ( IPv6RFC2462TestCase , self ) . setUp ( ) <EOL> self . flags ( ipv6_backend = '<STR_LIT>' ) <EOL> ipv6 . reset_backend ( ) <EOL> def test_to_global ( self ) : <EOL> addr = ipv6 . to_global ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:test>' ) <EOL> self . assertEqual ( addr , '<STR_LIT>' ) <EOL> def test_to_mac ( self ) : <EOL> mac = ipv6 . to_mac ( '<STR_LIT>' ) <EOL> self . assertEqual ( mac , '<STR_LIT>' ) <EOL> def test_to_global_with_bad_mac ( self ) : <EOL> bad_mac = '<STR_LIT>' <EOL> self . assertRaises ( TypeError , ipv6 . to_global , <EOL> '<STR_LIT>' , bad_mac , '<STR_LIT:test>' ) <EOL> def test_to_global_with_bad_prefix ( self ) : <EOL> bad_prefix = '<STR_LIT>' <EOL> self . assertRaises ( TypeError , ipv6 . to_global , <EOL> bad_prefix , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT:test>' ) <EOL> def test_to_global_with_bad_project ( self ) : <EOL> bad_project = '<STR_LIT>' <EOL> self . assertRaises ( TypeError , ipv6 . to_global , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> bad_project ) <EOL> class IPv6AccountIdentiferTestCase ( test . NoDBTestCase ) : <EOL> """<STR_LIT>""" <EOL> def setUp ( self ) : <EOL> super ( IPv6AccountIdentiferTestCase , self ) . setUp ( ) <EOL> self . flags ( ipv6_backend = '<STR_LIT>' ) <EOL> ipv6 . reset_backend ( ) <EOL> def test_to_global ( self ) : <EOL> addr = ipv6 . to_global ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:test>' ) <EOL> self . assertEqual ( addr , '<STR_LIT>' ) <EOL> def test_to_mac ( self ) : <EOL> mac = ipv6 . to_mac ( '<STR_LIT>' ) <EOL> self . assertEqual ( mac , '<STR_LIT>' ) <EOL> def test_to_global_with_bad_mac ( self ) : <EOL> bad_mac = '<STR_LIT>' <EOL> self . assertRaises ( TypeError , ipv6 . to_global , <EOL> '<STR_LIT>' , bad_mac , '<STR_LIT:test>' ) <EOL> def test_to_global_with_bad_prefix ( self ) : <EOL> bad_prefix = '<STR_LIT>' <EOL> self . assertRaises ( TypeError , ipv6 . to_global , <EOL> bad_prefix , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT:test>' ) <EOL> def test_to_global_with_bad_project ( self ) : <EOL> bad_project = '<STR_LIT>' <EOL> self . assertRaises ( TypeError , ipv6 . to_global , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> bad_project ) </s>
