def test_drop_row_range(self): channel = ChannelStub() client = bigtable_admin_v2.BigtableTableAdminClient(channel=channel) # Setup Request name = client.table_path('[PROJECT]', '[INSTANCE]', '[TABLE]') client.drop_row_range(name) assert len(channel.requests) == 1 expected_request = bigtable_table_admin_pb2.DropRowRangeRequest( name=name) actual_request = channel.requests[0][1] assert expected_request == actual_request
def test_drop_row_range(self): channel = ChannelStub() patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = bigtable_admin_v2.BigtableTableAdminClient() # Setup Request name = client.table_path("[PROJECT]", "[INSTANCE]", "[TABLE]") client.drop_row_range(name) assert len(channel.requests) == 1 expected_request = bigtable_table_admin_pb2.DropRowRangeRequest(name=name) actual_request = channel.requests[0][1] assert expected_request == actual_request