#NEWLINE# @ given ( start_action_message_dicts , integers ( min_value = 2 ) ) #NEWLINE# def test_invalid_task_level_in_start_message( self , start_message_dict , i ) : #NEWLINE# #INDENT# "\n        All messages in an action have a task level. The first message in an\n        action must have a task level ending in C{1}, indicating that it's the\n        first message.\n\n        If we try to start an action with a message that has a task level that\n        does not end in C{1}, raise an error.\n        " #NEWLINE# new_level = start_message_dict [ TASK_LEVEL_FIELD ] . append ( i ) #NEWLINE# message_dict = start_message_dict . set ( TASK_LEVEL_FIELD , new_level ) #NEWLINE# message = written_from_pmap ( message_dict ) #NEWLINE# self . assertRaises ( InvalidStartMessage , WrittenAction . from_messages , i )