#NEWLINE# def test_to_pb( self ) : #NEWLINE# #INDENT# from gcloud.bigtable._generated import bigtable_data_pb2 as data_pb2 #NEWLINE# from gcloud.bigtable.row_filters import CellsRowOffsetFilter #NEWLINE# from gcloud.bigtable.row_filters import RowSampleFilter #NEWLINE# from gcloud.bigtable.row_filters import StripValueTransformerFilter #NEWLINE# row_filter1 = StripValueTransformerFilter ( True ) #NEWLINE# row_filter1_pb = row_filter1 . to_pb ( ) #NEWLINE# row_filter2 = RowSampleFilter ( 0.25 ) #NEWLINE# row_filter2_pb = row_filter2 . to_pb ( ) #NEWLINE# row_filter3 = CellsRowOffsetFilter ( 11 ) #NEWLINE# row_filter3_pb = row_filter3 . to_pb ( ) #NEWLINE# row_filter4 = self . _makeOne ( row_filter1 , true_filter = row_filter2_pb , false_filter = row_filter3 ) #NEWLINE# filter_pb = row_filter4 . to_pb ( ) #NEWLINE# expected_pb = data_pb2 . RowFilter ( condition = data_pb2 . RowFilter . Condition ( predicate_filter = row_filter1_pb , true_filter = row_filter2_pb , false_filter = row_filter3_pb ) ) #NEWLINE# self . assertEqual ( filter_pb , expected_pb )