'Test basic create.'

def test_create_key_with_type(self):

    key_name = 'with_type'
    (tp_test, created_key) = self._get_mock_kp_for_create(key_name, key_type='ssh')
    scheduler.TaskRunner(tp_test.create)()
    self.assertEqual((tp_test.CREATE, tp_test.COMPLETE), tp_test.state)
    self.assertEqual(tp_test.resource_id, created_key.name)
    self.fake_keypairs.create.assert_called_once_with(name=key_name, public_key=None, type='ssh')
    self.cp_mock.assert_called_once_with(version='2.2')
