<s> __author__ = "<STR_LIT>" <EOL> __credits__ = "<STR_LIT>" <EOL> import unittest <EOL> from nose . plugins . attrib import attr <EOL> from jnpr . junos import Device <EOL> from jnpr . junos . facts . switch_style import facts_switch_style as switch_style <EOL> @ attr ( '<STR_LIT>' ) <EOL> class TestSwitchStyle ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . facts = { } <EOL> self . dev = Device ( host = '<STR_LIT>' , user = '<STR_LIT>' , password = '<STR_LIT>' , <EOL> gather_facts = False ) <EOL> def test_switch_style_mx_srx ( self ) : <EOL> self . facts [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> switch_style ( self . dev , self . facts ) <EOL> self . assertEqual ( self . facts [ '<STR_LIT>' ] , '<STR_LIT>' ) <EOL> def test_switch_style_model_firefly ( self ) : <EOL> self . facts [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> self . facts [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> switch_style ( self . dev , self . facts ) <EOL> self . assertEqual ( self . facts [ '<STR_LIT>' ] , '<STR_LIT>' ) <EOL> def test_switch_style_model_ex9000 ( self ) : <EOL> self . facts [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> self . facts [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> switch_style ( self . dev , self . facts ) <EOL> self . assertEqual ( self . facts [ '<STR_LIT>' ] , '<STR_LIT>' ) <EOL> def test_switch_style_model_not_specific ( self ) : <EOL> self . facts [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> self . facts [ '<STR_LIT>' ] = '<STR_LIT:abc>' <EOL> switch_style ( self . dev , self . facts ) <EOL> self . assertEqual ( self . facts [ '<STR_LIT>' ] , '<STR_LIT>' ) <EOL> def test_switch_style_persona_not_specific ( self ) : <EOL> self . facts [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> self . facts [ '<STR_LIT>' ] = '<STR_LIT:abc>' <EOL> switch_style ( self . dev , self . facts ) <EOL> self . assertEqual ( self . facts [ '<STR_LIT>' ] , '<STR_LIT>' ) </s>
