def test_list_users(self): ''' Test if it list all users ''' with patch('salt.modules.ilo.__execute_cmd', MagicMock(return_value={'All users': {}})): self.assertDictEqual(ilo.list_users(), {'All users': {}})
def test_list_users(self): """ Test if it list all users """ with patch("salt.modules.ilo.__execute_cmd", MagicMock(return_value={"All users": {}})): self.assertDictEqual(ilo.list_users(), {"All users": {}})
def test_list_users(self): ''' Test if it list all users ''' self.assertDictEqual(ilo.list_users(), {'All users': {}})