@@ -361,23 +361,23 @@ def test_exists__returns_true__when_user_provided_value_is_boolean(self):
361
361
362
362
self .assertStrictTrue (evaluator .evaluate (0 ))
363
363
364
- def test_exact_string__returns_true__when_user_provided_value_is_equal_to_condition_value (self , ):
364
+ def test_exact_string__returns_true__when_user_provided_value_is_equal_to_condition_value (self ):
365
365
366
366
evaluator = condition_helper .CustomAttributeConditionEvaluator (
367
367
exact_string_condition_list , {'favorite_constellation' : 'Lacerta' }, self .mock_client_logger ,
368
368
)
369
369
370
370
self .assertStrictTrue (evaluator .evaluate (0 ))
371
371
372
- def test_exact_string__returns_false__when_user_provided_value_is_not_equal_to_condition_value (self , ):
372
+ def test_exact_string__returns_false__when_user_provided_value_is_not_equal_to_condition_value (self ):
373
373
374
374
evaluator = condition_helper .CustomAttributeConditionEvaluator (
375
375
exact_string_condition_list , {'favorite_constellation' : 'The Big Dipper' }, self .mock_client_logger ,
376
376
)
377
377
378
378
self .assertStrictFalse (evaluator .evaluate (0 ))
379
379
380
- def test_exact_string__returns_null__when_user_provided_value_is_different_type_from_condition_value (self , ):
380
+ def test_exact_string__returns_null__when_user_provided_value_is_different_type_from_condition_value (self ):
381
381
382
382
evaluator = condition_helper .CustomAttributeConditionEvaluator (
383
383
exact_string_condition_list , {'favorite_constellation' : False }, self .mock_client_logger ,
@@ -393,7 +393,7 @@ def test_exact_string__returns_null__when_no_user_provided_value(self):
393
393
394
394
self .assertIsNone (evaluator .evaluate (0 ))
395
395
396
- def test_exact_int__returns_true__when_user_provided_value_is_equal_to_condition_value (self , ):
396
+ def test_exact_int__returns_true__when_user_provided_value_is_equal_to_condition_value (self ):
397
397
398
398
if PY2 :
399
399
evaluator = condition_helper .CustomAttributeConditionEvaluator (
@@ -414,7 +414,7 @@ def test_exact_int__returns_true__when_user_provided_value_is_equal_to_condition
414
414
415
415
self .assertStrictTrue (evaluator .evaluate (0 ))
416
416
417
- def test_exact_float__returns_true__when_user_provided_value_is_equal_to_condition_value (self , ):
417
+ def test_exact_float__returns_true__when_user_provided_value_is_equal_to_condition_value (self ):
418
418
419
419
if PY2 :
420
420
evaluator = condition_helper .CustomAttributeConditionEvaluator (
@@ -435,23 +435,23 @@ def test_exact_float__returns_true__when_user_provided_value_is_equal_to_conditi
435
435
436
436
self .assertStrictTrue (evaluator .evaluate (0 ))
437
437
438
- def test_exact_int__returns_false__when_user_provided_value_is_not_equal_to_condition_value (self , ):
438
+ def test_exact_int__returns_false__when_user_provided_value_is_not_equal_to_condition_value (self ):
439
439
440
440
evaluator = condition_helper .CustomAttributeConditionEvaluator (
441
441
exact_int_condition_list , {'lasers_count' : 8000 }, self .mock_client_logger
442
442
)
443
443
444
444
self .assertStrictFalse (evaluator .evaluate (0 ))
445
445
446
- def test_exact_float__returns_false__when_user_provided_value_is_not_equal_to_condition_value (self , ):
446
+ def test_exact_float__returns_false__when_user_provided_value_is_not_equal_to_condition_value (self ):
447
447
448
448
evaluator = condition_helper .CustomAttributeConditionEvaluator (
449
449
exact_float_condition_list , {'lasers_count' : 8000.0 }, self .mock_client_logger ,
450
450
)
451
451
452
452
self .assertStrictFalse (evaluator .evaluate (0 ))
453
453
454
- def test_exact_int__returns_null__when_user_provided_value_is_different_type_from_condition_value (self , ):
454
+ def test_exact_int__returns_null__when_user_provided_value_is_different_type_from_condition_value (self ):
455
455
456
456
evaluator = condition_helper .CustomAttributeConditionEvaluator (
457
457
exact_int_condition_list , {'lasers_count' : 'hi' }, self .mock_client_logger
@@ -465,7 +465,7 @@ def test_exact_int__returns_null__when_user_provided_value_is_different_type_fro
465
465
466
466
self .assertIsNone (evaluator .evaluate (0 ))
467
467
468
- def test_exact_float__returns_null__when_user_provided_value_is_different_type_from_condition_value (self , ):
468
+ def test_exact_float__returns_null__when_user_provided_value_is_different_type_from_condition_value (self ):
469
469
470
470
evaluator = condition_helper .CustomAttributeConditionEvaluator (
471
471
exact_float_condition_list , {'lasers_count' : 'hi' }, self .mock_client_logger
@@ -522,23 +522,23 @@ def test_exact__given_number_values__calls_is_finite_number(self):
522
522
523
523
mock_is_finite .assert_has_calls ([mock .call (9000 ), mock .call (9000 )])
524
524
525
- def test_exact_bool__returns_true__when_user_provided_value_is_equal_to_condition_value (self , ):
525
+ def test_exact_bool__returns_true__when_user_provided_value_is_equal_to_condition_value (self ):
526
526
527
527
evaluator = condition_helper .CustomAttributeConditionEvaluator (
528
528
exact_bool_condition_list , {'did_register_user' : False }, self .mock_client_logger ,
529
529
)
530
530
531
531
self .assertStrictTrue (evaluator .evaluate (0 ))
532
532
533
- def test_exact_bool__returns_false__when_user_provided_value_is_not_equal_to_condition_value (self , ):
533
+ def test_exact_bool__returns_false__when_user_provided_value_is_not_equal_to_condition_value (self ):
534
534
535
535
evaluator = condition_helper .CustomAttributeConditionEvaluator (
536
536
exact_bool_condition_list , {'did_register_user' : True }, self .mock_client_logger ,
537
537
)
538
538
539
539
self .assertStrictFalse (evaluator .evaluate (0 ))
540
540
541
- def test_exact_bool__returns_null__when_user_provided_value_is_different_type_from_condition_value (self , ):
541
+ def test_exact_bool__returns_null__when_user_provided_value_is_different_type_from_condition_value (self ):
542
542
543
543
evaluator = condition_helper .CustomAttributeConditionEvaluator (
544
544
exact_bool_condition_list , {'did_register_user' : 0 }, self .mock_client_logger
@@ -554,15 +554,15 @@ def test_exact_bool__returns_null__when_no_user_provided_value(self):
554
554
555
555
self .assertIsNone (evaluator .evaluate (0 ))
556
556
557
- def test_substring__returns_true__when_condition_value_is_substring_of_user_value (self , ):
557
+ def test_substring__returns_true__when_condition_value_is_substring_of_user_value (self ):
558
558
559
559
evaluator = condition_helper .CustomAttributeConditionEvaluator (
560
560
substring_condition_list , {'headline_text' : 'Limited time, buy now!' }, self .mock_client_logger ,
561
561
)
562
562
563
563
self .assertStrictTrue (evaluator .evaluate (0 ))
564
564
565
- def test_substring__returns_false__when_condition_value_is_not_a_substring_of_user_value (self , ):
565
+ def test_substring__returns_false__when_condition_value_is_not_a_substring_of_user_value (self ):
566
566
567
567
evaluator = condition_helper .CustomAttributeConditionEvaluator (
568
568
substring_condition_list , {'headline_text' : 'Breaking news!' }, self .mock_client_logger ,
@@ -586,7 +586,7 @@ def test_substring__returns_null__when_no_user_provided_value(self):
586
586
587
587
self .assertIsNone (evaluator .evaluate (0 ))
588
588
589
- def test_greater_than_int__returns_true__when_user_value_greater_than_condition_value (self , ):
589
+ def test_greater_than_int__returns_true__when_user_value_greater_than_condition_value (self ):
590
590
591
591
evaluator = condition_helper .CustomAttributeConditionEvaluator (
592
592
gt_int_condition_list , {'meters_travelled' : 48.1 }, self .mock_client_logger
@@ -607,7 +607,7 @@ def test_greater_than_int__returns_true__when_user_value_greater_than_condition_
607
607
608
608
self .assertStrictTrue (evaluator .evaluate (0 ))
609
609
610
- def test_greater_than_float__returns_true__when_user_value_greater_than_condition_value (self , ):
610
+ def test_greater_than_float__returns_true__when_user_value_greater_than_condition_value (self ):
611
611
612
612
evaluator = condition_helper .CustomAttributeConditionEvaluator (
613
613
gt_float_condition_list , {'meters_travelled' : 48.3 }, self .mock_client_logger
@@ -628,7 +628,7 @@ def test_greater_than_float__returns_true__when_user_value_greater_than_conditio
628
628
629
629
self .assertStrictTrue (evaluator .evaluate (0 ))
630
630
631
- def test_greater_than_int__returns_false__when_user_value_not_greater_than_condition_value (self , ):
631
+ def test_greater_than_int__returns_false__when_user_value_not_greater_than_condition_value (self ):
632
632
633
633
evaluator = condition_helper .CustomAttributeConditionEvaluator (
634
634
gt_int_condition_list , {'meters_travelled' : 47.9 }, self .mock_client_logger
@@ -649,7 +649,7 @@ def test_greater_than_int__returns_false__when_user_value_not_greater_than_condi
649
649
650
650
self .assertStrictFalse (evaluator .evaluate (0 ))
651
651
652
- def test_greater_than_float__returns_false__when_user_value_not_greater_than_condition_value (self , ):
652
+ def test_greater_than_float__returns_false__when_user_value_not_greater_than_condition_value (self ):
653
653
654
654
evaluator = condition_helper .CustomAttributeConditionEvaluator (
655
655
gt_float_condition_list , {'meters_travelled' : 48.2 }, self .mock_client_logger
@@ -877,7 +877,7 @@ def test_less_than_int__returns_true__when_user_value_less_than_condition_value(
877
877
878
878
self .assertStrictTrue (evaluator .evaluate (0 ))
879
879
880
- def test_less_than_float__returns_true__when_user_value_less_than_condition_value (self , ):
880
+ def test_less_than_float__returns_true__when_user_value_less_than_condition_value (self ):
881
881
882
882
evaluator = condition_helper .CustomAttributeConditionEvaluator (
883
883
lt_float_condition_list , {'meters_travelled' : 48.1 }, self .mock_client_logger
@@ -898,7 +898,7 @@ def test_less_than_float__returns_true__when_user_value_less_than_condition_valu
898
898
899
899
self .assertStrictTrue (evaluator .evaluate (0 ))
900
900
901
- def test_less_than_int__returns_false__when_user_value_not_less_than_condition_value (self , ):
901
+ def test_less_than_int__returns_false__when_user_value_not_less_than_condition_value (self ):
902
902
903
903
evaluator = condition_helper .CustomAttributeConditionEvaluator (
904
904
lt_int_condition_list , {'meters_travelled' : 48.1 }, self .mock_client_logger
@@ -919,7 +919,7 @@ def test_less_than_int__returns_false__when_user_value_not_less_than_condition_v
919
919
920
920
self .assertStrictFalse (evaluator .evaluate (0 ))
921
921
922
- def test_less_than_float__returns_false__when_user_value_not_less_than_condition_value (self , ):
922
+ def test_less_than_float__returns_false__when_user_value_not_less_than_condition_value (self ):
923
923
924
924
evaluator = condition_helper .CustomAttributeConditionEvaluator (
925
925
lt_float_condition_list , {'meters_travelled' : 48.2 }, self .mock_client_logger
@@ -972,7 +972,7 @@ def test_less_than_float__returns_null__when_no_user_provided_value(self):
972
972
973
973
self .assertIsNone (evaluator .evaluate (0 ))
974
974
975
- def test_less_than_or_equal_int__returns_true__when_user_value_less_than_or_equal_condition_value (self , ):
975
+ def test_less_than_or_equal_int__returns_true__when_user_value_less_than_or_equal_condition_value (self ):
976
976
977
977
evaluator = condition_helper .CustomAttributeConditionEvaluator (
978
978
le_int_condition_list , {'meters_travelled' : 47.9 }, self .mock_client_logger
@@ -1005,7 +1005,7 @@ def test_less_than_or_equal_int__returns_true__when_user_value_less_than_or_equa
1005
1005
1006
1006
self .assertStrictTrue (evaluator .evaluate (0 ))
1007
1007
1008
- def test_less_than_or_equal_float__returns_true__when_user_value_less_than_or_equal_condition_value (self , ):
1008
+ def test_less_than_or_equal_float__returns_true__when_user_value_less_than_or_equal_condition_value (self ):
1009
1009
1010
1010
evaluator = condition_helper .CustomAttributeConditionEvaluator (
1011
1011
le_float_condition_list , {'meters_travelled' : 48.1 }, self .mock_client_logger
@@ -1032,7 +1032,7 @@ def test_less_than_or_equal_float__returns_true__when_user_value_less_than_or_eq
1032
1032
1033
1033
self .assertStrictTrue (evaluator .evaluate (0 ))
1034
1034
1035
- def test_less_than_or_equal_int__returns_false__when_user_value_not_less_than_or_equal_condition_value (self , ):
1035
+ def test_less_than_or_equal_int__returns_false__when_user_value_not_less_than_or_equal_condition_value (self ):
1036
1036
1037
1037
evaluator = condition_helper .CustomAttributeConditionEvaluator (
1038
1038
le_int_condition_list , {'meters_travelled' : 48.1 }, self .mock_client_logger
@@ -1053,7 +1053,7 @@ def test_less_than_or_equal_int__returns_false__when_user_value_not_less_than_or
1053
1053
1054
1054
self .assertStrictFalse (evaluator .evaluate (0 ))
1055
1055
1056
- def test_less_than_or_equal_float__returns_false__when_user_value_not_less_than_or_equal_condition_value (self , ):
1056
+ def test_less_than_or_equal_float__returns_false__when_user_value_not_less_than_or_equal_condition_value (self ):
1057
1057
1058
1058
evaluator = condition_helper .CustomAttributeConditionEvaluator (
1059
1059
le_float_condition_list , {'meters_travelled' : 48.3 }, self .mock_client_logger
0 commit comments