@@ -86,15 +86,15 @@ def test_lpush(self):
8686 Insertion maintains order but not uniqueness.
8787 """
8888 # lpush two values
89- self .redis .lpush (LIST1 , VAL1 )
90- self .redis .lpush (LIST1 , VAL2 )
89+ eq_ ( 1 , self .redis .lpush (LIST1 , VAL1 ) )
90+ eq_ ( 2 , self .redis .lpush (LIST1 , VAL2 ) )
9191
9292 # validate insertion
9393 eq_ (b"list" , self .redis .type (LIST1 ))
9494 eq_ ([bVAL2 , bVAL1 ], self .redis .lrange (LIST1 , 0 , - 1 ))
9595
9696 # insert two more values with one repeated
97- self .redis .lpush (LIST1 , VAL1 , VAL3 )
97+ eq_ ( 4 , self .redis .lpush (LIST1 , VAL1 , VAL3 ) )
9898
9999 # validate the update
100100 eq_ (b"list" , self .redis .type (LIST1 ))
@@ -128,15 +128,15 @@ def test_rpush(self):
128128 Insertion maintains order but not uniqueness.
129129 """
130130 # rpush two values
131- self .redis .rpush (LIST1 , VAL1 )
132- self .redis .rpush (LIST1 , VAL2 )
131+ eq_ ( 1 , self .redis .rpush (LIST1 , VAL1 ) )
132+ eq_ ( 2 , self .redis .rpush (LIST1 , VAL2 ) )
133133
134134 # validate insertion
135135 eq_ (b"list" , self .redis .type (LIST1 ))
136136 eq_ ([bVAL1 , bVAL2 ], self .redis .lrange (LIST1 , 0 , - 1 ))
137137
138138 # insert two more values with one repeated
139- self .redis .rpush (LIST1 , VAL1 , VAL3 )
139+ eq_ ( 4 , self .redis .rpush (LIST1 , VAL1 , VAL3 ) )
140140
141141 # validate the update
142142 eq_ (b"list" , self .redis .type (LIST1 ))
0 commit comments