@@ -741,7 +741,7 @@ def test_ctor(self):
741741 assert instance .family == expected_family
742742 assert instance .qualifier == expected_qualifier
743743 assert instance .value == expected_value
744- assert instance .timestamp_micros == expected_timestamp
744+ assert instance .timestamp == expected_timestamp
745745
746746 def test_ctor_negative_timestamp (self ):
747747 """Only positive timestamps are valid"""
@@ -768,7 +768,7 @@ def test_ctor_no_timestamp(self, timestamp_ns, expected_timestamp_micros):
768768 """If no timestamp is given, should use current time with millisecond precision"""
769769 with mock .patch ("time.time_ns" , return_value = timestamp_ns ):
770770 instance = self ._make_one ("test-family" , b"test-qualifier" , 1234 )
771- assert instance .timestamp_micros == expected_timestamp_micros
771+ assert instance .timestamp == expected_timestamp_micros
772772
773773 def test__to_dict (self ):
774774 """ensure dict representation is as expected"""
@@ -801,18 +801,17 @@ def test__to_pb(self):
801801 )
802802 got_pb = instance ._to_pb ()
803803 assert isinstance (got_pb , data_pb .Mutation )
804- assert got_pb .set_cell .family_name == expected_family
805- assert got_pb .set_cell .column_qualifier .raw_value == expected_qualifier
806- assert got_pb .set_cell .timestamp .raw_timestamp_micros == expected_timestamp
807- assert got_pb .set_cell .input .int_value == expected_value
804+ assert got_pb .add_to_cell .family_name == expected_family
805+ assert got_pb .add_to_cell .column_qualifier .raw_value == expected_qualifier
806+ assert got_pb .add_to_cell .timestamp .raw_timestamp_micros == expected_timestamp
807+ assert got_pb .add_to_cell .input .int_value == expected_value
808808
809809 @pytest .mark .parametrize (
810810 "timestamp" ,
811811 [
812812 (1234567890 ),
813813 (1 ),
814814 (0 ),
815- (- 1 ),
816815 (None ),
817816 ],
818817 )
0 commit comments