Module Expr Str Assign NameStore Str Import alias Import alias ImportFrom alias ImportFrom alias alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Str Str Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad ListLoad Str ListLoad Str ListLoad Num Num Num ListLoad Num Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad ListLoad Str ListLoad Str ListLoad Num Num Num ListLoad Num Num Assign AttributeStore NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr keyword Num keyword Num keyword Num keyword Num Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num ImportFrom alias Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Print Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Print Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list decorator_list
N/A N/A 
   Copyright 2013, 2014 Ricardo Tubio-Pardavila

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 N/A __author__ rtubiopa@calpoly.edu N/A datetime N/A logging django test services.common misc helpers db_tools services.configuration.jrpc.serializers channels channel_serializers services.configuration.jrpc.serializers rules rule_serializers services.configuration.jrpc.views rules rule_jrpc services.scheduling.models availability availability_models services.scheduling.models operational operational_models INTRARulesAvailability N/A N/A test TestCase N/A N/A INTRA modules tests: rules should automatically update the availability
     setUp N/A N/A self N/A N/A N/A 
        This method populates the database with some information to be used
        only for this test.
         N/A N/A self __verbose_testing False N/A N/A N/A self __verbose_testing N/A N/A N/A N/A N/A N/A logging getLogger configuration setLevel level N/A logging CRITICAL N/A N/A N/A N/A N/A logging getLogger scheduling setLevel level N/A logging CRITICAL N/A N/A self __sc_1_id xatcobeo-sc N/A N/A self __sc_1_tle_id HUMSAT-D N/A N/A self __sc_1_ch_1_id xatcobeo-fm N/A N/A self __sc_1_ch_1_cfg N/A N/A channel_serializers FREQUENCY_K N/A channel_serializers MODULATION_K N/A channel_serializers POLARIZATION_K N/A channel_serializers BITRATE_K N/A channel_serializers BANDWIDTH_K 437000000 FM LHCP 300 12.500000000 N/A N/A self __gs_1_id gs-la N/A N/A self __gs_1_ch_1_id gs-la-fm N/A N/A self __gs_1_ch_1_cfg N/A N/A channel_serializers BAND_K N/A channel_serializers AUTOMATED_K N/A channel_serializers MODULATIONS_K N/A channel_serializers POLARIZATIONS_K N/A channel_serializers BITRATES_K N/A channel_serializers BANDWIDTHS_K UHF / U / 435000000.000000 / 438000000.000000 False N/A FM N/A LHCP N/A 300 600 900 N/A 12.5 25.0 N/A N/A self __gs_1_ch_2_id gs-la-fm-2 N/A N/A self __gs_1_ch_2_cfg N/A N/A channel_serializers BAND_K N/A channel_serializers AUTOMATED_K N/A channel_serializers MODULATIONS_K N/A channel_serializers POLARIZATIONS_K N/A channel_serializers BITRATES_K N/A channel_serializers BANDWIDTHS_K UHF / U / 435000000.000000 / 438000000.000000 False N/A FM N/A LHCP N/A 300 600 900 N/A 12.5 25.0 N/A N/A self __rule_date N/A N/A N/A misc get_today_utc N/A N/A datetime timedelta days 1 N/A N/A self __rule_s_time N/A N/A N/A N/A misc get_today_utc replace hour 12 minute 0 second 0 microsecond 0 N/A N/A self __rule_e_time N/A N/A self __rule_s_time N/A N/A datetime timedelta hours 5 services.scheduling.signals availability N/A N/A self __band N/A N/A db_tools create_band N/A N/A self __user_profile N/A N/A db_tools create_user_profile N/A N/A self __sc_1 N/A N/A db_tools create_sc user_profile N/A self __user_profile identifier N/A self __sc_1_id tle_id N/A self __sc_1_tle_id N/A N/A self __gs_1 N/A N/A db_tools create_gs user_profile N/A self __user_profile identifier N/A self __gs_1_id N/A N/A N/A N/A N/A operational_models OperationalSlot objects set_debug N/A test_rule_created_deleted N/A N/A self N/A N/A N/A INTR test: availability changed after basic rule operations
         N/A N/A self __verbose_testing N/A N/A ##### test_rule_created_deleted N/A rule_1_pk N/A N/A rule_jrpc add_rule N/A self __gs_1_id N/A N/A db_tools create_jrpc_once_rule starting_time N/A self __rule_s_time ending_time N/A self __rule_e_time N/A N/A N/A self assertEquals N/A N/A N/A N/A availability_models AvailabilitySlot objects count 1 One availability slot should have been created N/A N/A N/A rule_jrpc remove_rule N/A self __gs_1_id rule_1_pk N/A N/A N/A self assertEquals N/A N/A N/A N/A availability_models AvailabilitySlot objects count 0 No availability slots should be available N/A test_multiple_rules N/A N/A self N/A N/A N/A INTR test: multiple rules
         N/A N/A self __verbose_testing N/A N/A ##### test_rule_created_deleted N/A rule_1_pk N/A N/A rule_jrpc add_rule N/A self __gs_1_id N/A N/A db_tools create_jrpc_once_rule starting_time N/A self __rule_s_time ending_time N/A self __rule_e_time N/A N/A N/A self assertEquals N/A N/A N/A N/A availability_models AvailabilitySlot objects count 1 N/A rule_2_pk N/A N/A rule_jrpc add_rule N/A self __gs_1_id N/A N/A db_tools create_jrpc_once_rule operation N/A N/A rule_jrpc rule_serializers RULE_OP_REMOVE starting_time N/A self __rule_s_time ending_time N/A self __rule_e_time N/A N/A N/A self assertEquals N/A N/A N/A N/A availability_models AvailabilitySlot objects count 0 N/A N/A N/A rule_jrpc remove_rule N/A self __gs_1_id rule_2_pk N/A N/A N/A self assertEquals N/A N/A N/A N/A availability_models AvailabilitySlot objects count 1 N/A rule_3 N/A N/A db_tools create_jrpc_once_rule operation N/A rule_serializers RULE_OP_REMOVE starting_time N/A self __rule_s_time ending_time N/A self __rule_e_time N/A rule_3_pk N/A N/A rule_jrpc add_rule N/A self __gs_1_id rule_3 N/A N/A N/A self assertEquals N/A N/A N/A N/A availability_models AvailabilitySlot objects count 0 N/A N/A N/A rule_jrpc remove_rule N/A self __gs_1_id rule_3_pk N/A N/A N/A self assertEquals N/A N/A N/A N/A availability_models AvailabilitySlot objects count 1 N/A N/A N/A rule_jrpc remove_rule N/A self __gs_1_id rule_1_pk N/A N/A N/A self assertEquals N/A N/A N/A N/A availability_models AvailabilitySlot objects count 0 N/A N/A