'Test that failover_host returns with error'

def test_failover_host_bad_state(self):

    self.driver.do_setup(None)
    replicated_volume = copy.deepcopy(REPLICATED_VOLUME)
    replicated_volume['replication_status'] = 'invalid_status_val'
    expected_target_id = 'BLA'
    expected_volume_update_list = [{'volume_id': REPLICATED_VOLUME['id'], 'updates': {'replication_status': 'error'}}]
    (target_id, volume_update_list, __) = self.driver.failover_host(CONTEXT, [replicated_volume], SECONDARY, [])
    self.assertEqual(expected_target_id, target_id)
    self.assertEqual(expected_volume_update_list, volume_update_list)
