

@unittest.skipUnless(RUN_INDEXES, 'RUN_INDEXES is 0')
def test_secondary_index_invalid_name(self):
    if (not self.is_2i_supported()):
        raise unittest.SkipTest('2I not supported')
    bucket = bucket.client.bucket(self.bucket_name)
    with self.assertRaises(RiakError):
        bucket.new('k', 'a').add_index('field1', 'value1')

dataset/ETHPy150Open basho/riak-python-client/riak/tests/test_2i.py TwoITests.test_secondary_index_invalid_name/VarMisuse@43/74 `self`->`bucket`