def test_switch_style_persona_not_specific(self):
     self.facts['personality'] = 'PTX'
     self.facts['model'] = 'abc'
     switch_style(self.dev, self.facts)
     self.assertEqual(self.facts['switch_style'], 'NONE')
 def test_switch_style_model_not_specific(self):
     self.facts['personality'] = 'SWITCH'
     self.facts['model'] = 'abc'
     switch_style(self.dev, self.facts)
     self.assertEqual(self.facts['switch_style'], 'VLAN')
 def test_switch_style_model_firefly(self):
     self.facts['personality'] = 'SWITCH'
     self.facts['model'] = 'FIReFly'
     switch_style(self.dev, self.facts)
     self.assertEqual(self.facts['switch_style'], 'NONE')
 def test_switch_style_model_ex9000(self):
     self.facts['personality'] = 'SWITCH'
     self.facts['model'] = 'EX9000'
     switch_style(self.dev, self.facts)
     self.assertEqual(self.facts['switch_style'], 'VLAN_L2NG')
 def test_switch_style_mx_srx(self):
     self.facts['personality'] = 'SRX_HIGHEND'
     switch_style(self.dev, self.facts)
     self.assertEqual(self.facts['switch_style'], 'BRIDGE_DOMAIN')