@@ -1387,29 +1387,6 @@ def side_effect(*args, **kwargs):
1387
1387
mock_is_feature_enabled .assert_any_call ('test_feature_in_group' , 'user_1' , None )
1388
1388
mock_is_feature_enabled .assert_any_call ('test_feature_in_experiment_and_rollout' , 'user_1' , None )
1389
1389
1390
- def test_get_enabled_features_returns_a_sorted_list (self ):
1391
- """ Test that get_enabled_features returns a sorted list of enabled feature keys. """
1392
-
1393
- opt_obj = optimizely .Optimizely (json .dumps (self .config_dict_with_features ))
1394
-
1395
- with mock .patch ('optimizely.optimizely.Optimizely.is_feature_enabled' ,
1396
- return_value = True ) as mock_is_feature_enabled :
1397
- received_features = opt_obj .get_enabled_features ('user_1' )
1398
-
1399
- mock_is_feature_enabled .assert_any_call ('test_feature_in_experiment' , 'user_1' , None )
1400
- mock_is_feature_enabled .assert_any_call ('test_feature_in_rollout' , 'user_1' , None )
1401
- mock_is_feature_enabled .assert_any_call ('test_feature_in_group' , 'user_1' , None )
1402
- mock_is_feature_enabled .assert_any_call ('test_feature_in_experiment_and_rollout' , 'user_1' , None )
1403
-
1404
- expected_sorted_features = [
1405
- 'test_feature_in_experiment' ,
1406
- 'test_feature_in_experiment_and_rollout' ,
1407
- 'test_feature_in_group' ,
1408
- 'test_feature_in_rollout'
1409
- ]
1410
-
1411
- self .assertEqual (expected_sorted_features , received_features )
1412
-
1413
1390
def test_get_enabled_features__invalid_object (self ):
1414
1391
""" Test that get_enabled_features returns empty list if Optimizely object is not valid. """
1415
1392
0 commit comments