@@ -263,33 +263,33 @@ def test_concat_decrypt(self):
263263 self .assertEqual (employee .value , "999-05-6728 - 42" )
264264
265265 def test_exact (self ):
266- employee = Employee .
objects .
filter (
email__exact = "[email protected] " ). get ( )
266+ employee = Employee .
objects .
get (
email__exact = "[email protected] " )
267267 self .
assertEqual (
employee .
email ,
"[email protected] " )
268268
269269 def test_iexact (self ):
270- employee = Employee .
objects .
filter (
email__iexact = "[email protected] " ). get ( )
270+ employee = Employee .
objects .
get (
email__iexact = "[email protected] " )
271271 self .
assertEqual (
employee .
email ,
"[email protected] " )
272272
273273 def test_contains (self ):
274- employee = Employee .objects .filter (email__contains = "sal" ). get ( )
274+ employee = Employee .objects .get (email__contains = "sal" )
275275 self .
assertEqual (
employee .
email ,
"[email protected] " )
276276
277277 def test_icontains (self ):
278- employee = Employee .objects .filter (email__icontains = "SAL" ). get ( )
278+ employee = Employee .objects .get (email__icontains = "SAL" )
279279 self .
assertEqual (
employee .
email ,
"[email protected] " )
280280
281281 def test_startswith (self ):
282- employee = Employee .objects .filter (email__startswith = "john" ). get ( )
282+ employee = Employee .objects .get (email__startswith = "john" )
283283 self .
assertEqual (
employee .
email ,
"[email protected] " )
284284
285285 def test_istartswith (self ):
286- employee = Employee .objects .filter (email__istartswith = "JOHN" ). get ( )
286+ employee = Employee .objects .get (email__istartswith = "JOHN" )
287287 self .
assertEqual (
employee .
email ,
"[email protected] " )
288288
289289 def test_endswith (self ):
290- employee = Employee .objects .filter (email__endswith = "com" ). get ( )
290+ employee = Employee .objects .get (email__endswith = "com" )
291291 self .
assertEqual (
employee .
email ,
"[email protected] " )
292292
293293 def test_iendswith (self ):
294- employee = Employee .objects .filter (email__iendswith = "COM" ). get ( )
294+ employee = Employee .objects .get (email__iendswith = "COM" )
295295 self .
assertEqual (
employee .
email ,
"[email protected] " )
0 commit comments