'Test _delete_volume_replica.'

def test_delete_volume_replica(self):

    self.driver.replica = Replication()
    self.driver.target = FakeKrest()
    session_name = self.driver.get_session_name('1234567890987654321')
    self.assertEqual('ssn-1234567890987654321', session_name)
    rsession_name = self.driver.get_rep_name(session_name)
    self.assertEqual('rssn-1234567890987654321', rsession_name)
    res = self.driver._delete_by_ref(self.driver.client, 'volumes', 'test', 'test')
    self.assertIsNone(res)
    result = self.driver._delete_volume_replica(self.vol, 'test', 'test')
    self.assertIsNone(result)
    src_ssn = self.driver.client.search('replication/sessions').hits[0]
    self.assertEqual('idle', src_ssn.state)
