def METHOD_NAME(self):
    def mock_request(*args, **kwargs):
        return ""
    passive.utils.send_request = mock_request
    success = self.n.update_config('', '', '')
    self.assertFalse(success)
    def mock_request(*args, **kwargs):
        return "[test]\nvalue = foobar"
    passive.utils.send_request = mock_request
    success = self.n.update_config('', '', '')
    self.assertTrue(success)
    os.unlink(self.config.file_path)