@@ -48,15 +48,15 @@ def test_update_int(self):
4848 opcounts = OperationCounters (CounterFactory (), 'some-name' ,
4949 coders .PickleCoder (), 0 )
5050 self .verify_counters (opcounts , 0 )
51- opcounts .update_from (GlobalWindows .WindowedValue (1 ))
51+ opcounts .update_from (GlobalWindows .windowed_value (1 ))
5252 opcounts .update_collect ()
5353 self .verify_counters (opcounts , 1 )
5454
5555 def test_update_str (self ):
5656 opcounts = OperationCounters (CounterFactory (), 'some-name' ,
5757 coders .PickleCoder (), 0 )
5858 self .verify_counters (opcounts , 0 )
59- opcounts .update_from (GlobalWindows .WindowedValue ('abcde' ))
59+ opcounts .update_from (GlobalWindows .windowed_value ('abcde' ))
6060 opcounts .update_collect ()
6161 self .verify_counters (opcounts , 1 )
6262
@@ -65,7 +65,7 @@ def test_update_old_object(self):
6565 coders .PickleCoder (), 0 )
6666 self .verify_counters (opcounts , 0 )
6767 obj = OldClassThatDoesNotImplementLen ()
68- opcounts .update_from (GlobalWindows .WindowedValue (obj ))
68+ opcounts .update_from (GlobalWindows .windowed_value (obj ))
6969 opcounts .update_collect ()
7070 self .verify_counters (opcounts , 1 )
7171
@@ -75,19 +75,19 @@ def test_update_new_object(self):
7575 self .verify_counters (opcounts , 0 )
7676
7777 obj = ObjectThatDoesNotImplementLen ()
78- opcounts .update_from (GlobalWindows .WindowedValue (obj ))
78+ opcounts .update_from (GlobalWindows .windowed_value (obj ))
7979 opcounts .update_collect ()
8080 self .verify_counters (opcounts , 1 )
8181
8282 def test_update_multiple (self ):
8383 opcounts = OperationCounters (CounterFactory (), 'some-name' ,
8484 coders .PickleCoder (), 0 )
8585 self .verify_counters (opcounts , 0 )
86- opcounts .update_from (GlobalWindows .WindowedValue ('abcde' ))
87- opcounts .update_from (GlobalWindows .WindowedValue ('defghij' ))
86+ opcounts .update_from (GlobalWindows .windowed_value ('abcde' ))
87+ opcounts .update_from (GlobalWindows .windowed_value ('defghij' ))
8888 opcounts .update_collect ()
8989 self .verify_counters (opcounts , 2 )
90- opcounts .update_from (GlobalWindows .WindowedValue ('klmnop' ))
90+ opcounts .update_from (GlobalWindows .windowed_value ('klmnop' ))
9191 opcounts .update_collect ()
9292 self .verify_counters (opcounts , 3 )
9393
0 commit comments