#NEWLINE# @ patch ( 'compass.hdsdiscovery.utils.ssh_remote_execute' ) #NEWLINE# def test_scan( self , ovs_mock ) : #NEWLINE# #INDENT# 'test scan ovs switch.' #NEWLINE# ovs_mock . return_value = [ ] #NEWLINE# mac_instance = OVSMac ( self . host , mac_instance . credential ) #NEWLINE# self . assertIsNone ( mac_instance . scan ( ) ) #NEWLINE# del mac_instance #NEWLINE# ovs_mock . return_value = [ '\n' , '\n' , '\n' ] #NEWLINE# mac_instance = OVSMac ( self . host , self . credential ) #NEWLINE# self . assertEqual ( [ ] , mac_instance . scan ( ) ) #NEWLINE# del mac_instance