def test_hash_key_with_updating_active_index(self):
        with self.assertRaises(_lv.BuilderError) as catcher:
            UpdateTable("Foo").update_global_secondary_index("gsi").hash_key("h")
        self.assertEqual(catcher.exception.args, ("No active index or active index not being created.",))