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