'Create a test bigtable instance.'

@classmethod
def setUpClass(cls):

    super(CloudBigTableDataStoreMixin, cls).setUpClass()
    data_store_test._DataStoreTest.setUpClass()
    cls.test_project_id = config.CONFIG['CloudBigtable.test_project_id']
    if (not cls.test_project_id):
        raise unittest.SkipTest('No    CloudBigtable.test_project_id    set,    skipping.')
    cls.db = cloud_bigtable_data_store.CloudBigTableDataStore()
    cls.btclient = bigtable.Client(project=cls.test_project_id, admin=True)
    if (not cls.instance_id):
        cls.instance_id = ''.join((cls.TEST_BIGTABLE_INSTANCE_PREFIX, str(random.randrange(1, 1000))))
    cls.db.Initialize(project_id=cls.test_project_id, instance_id=cls.instance_id)
    cls.btinstance = cls.btclient.instance(cls.instance_id)
