'Test creating a snapshot, ensure full data of original copied.'

@mock.patch('socket.gethostbyname', return_value='123.123.123.123')
def test_create_snapshot(self, mock_ghn):

    snapshot = {'volume_name': 'volume10', 'volume_id': 'xxx', 'display_name': 'snap10', 'name': '123abc', 'volume_size': 10, 'id': '123abc', 'volume': {'provider_id': 'space10'}}
    ret = self.driver.create_snapshot(snapshot)
    self.assertEqual((11444 * units.Mi), self.dd_count)
    self.assertEqual('1M', self.bs)
    expected = {'redundancy': '0', 'group': 'xanadu', 'name': snapshot['display_name'], 'mode': '0777', 'user': 'kane', 'net': 'net1', 'storageserver': 'stor1:gbd0,stor2:gbd0,', 'size': '12'}
    self.assertDictEqual(expected, self.created)
    expected_pid = {'provider_id': 'snap10'}
    self.assertDictEqual(expected_pid, ret)
