Module Assign NameStore Str Import alias Import alias Import alias Import alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str If NameLoad body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str orelse Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str If CompareLtELtE Num AttributeLoad NameLoad attr Num body Print Str decorator_list NameLoad Expr Str FunctionDef arguments args NameParam defaults body Print Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Print Str Print BinOpAdd AttributeLoad NameLoad attr Str Print Str Assign NameStore Dict Str Str Assign NameStore BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Dict Str Str Str Num Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num BinOpAdd Str SubscriptLoad Call AttributeLoad NameLoad attr Index Str Print Str Print BinOpAdd AttributeLoad NameLoad attr Str Print Str decorator_list FunctionDef arguments args NameParam defaults body Print Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Print Str Print BinOpAdd AttributeLoad NameLoad attr Str Print Str Assign NameStore Dict Str Str Assign NameStore BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Dict Str Str Str Num Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num BinOpAdd Str SubscriptLoad Call AttributeLoad NameLoad attr Index Str Print Str Print BinOpAdd AttributeLoad NameLoad attr Str Print Str decorator_list FunctionDef arguments args NameParam defaults body Print Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Print Str Print BinOpAdd AttributeLoad NameLoad attr Str Print Str Assign NameStore Dict Str Str Assign NameStore BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Dict Str Str Str Num Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num BinOpAdd Str SubscriptLoad Call AttributeLoad NameLoad attr Index Str Print Str Print BinOpAdd AttributeLoad NameLoad attr Str Print Str decorator_list Expr Str FunctionDef arguments args NameParam defaults body Print Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Print Str Print BinOpAdd AttributeLoad NameLoad attr Str Print Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Print Str Print BinOpAdd AttributeLoad NameLoad attr Str Print Str decorator_list FunctionDef arguments args NameParam defaults body Print Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Print Str Print BinOpAdd AttributeLoad NameLoad attr Str Print Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Print Str Print BinOpAdd AttributeLoad NameLoad attr Str Print Str decorator_list FunctionDef arguments args NameParam defaults body Print Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Print Str Print BinOpAdd AttributeLoad NameLoad attr Str Print Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Print Str Print BinOpAdd AttributeLoad NameLoad attr Str Print Str decorator_list Expr Str FunctionDef arguments args NameParam defaults body Print Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Print Str Print BinOpAdd AttributeLoad NameLoad attr Str Print Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Print Str Print BinOpAdd AttributeLoad NameLoad attr Str Print Str decorator_list FunctionDef arguments args NameParam defaults body Print Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Print Str Print BinOpAdd AttributeLoad NameLoad attr Str Print Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Print Str Print BinOpAdd AttributeLoad NameLoad attr Str Print Str decorator_list decorator_list Expr Str
N/A N/A __author__ etye N/A unittest N/A requests N/A json N/A datetime Testing.config __CONFIG__ MessagesTestPlan N/A N/A unittest TestCase N/A setUpClass N/A N/A cls N/A N/A N/A debug N/A __CONFIG__ N/A DEBUG N/A debug N/A N/A url N/A N/A __CONFIG__ N/A PATHS N/A DEBUG N/A N/A url N/A N/A __CONFIG__ N/A PATHS N/A PRODUCTION N/A N/A cls url_ url N/A request N/A N/A requests get N/A url api/qa/init N/A N/A 200 N/A request status_code 299 N/A N/A Initialized N/A classmethod N/A 
    /api/messages/create/<string:token>
    POST OPTIONS
    token  user  payload  e  msg
    This call will create a new Message in the DB
     test_messageCreate_Student N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A datetime datetime now time N/A *********************************************** N/A N/A N/A self _testMethodName Has begun N/A *********************************************** N/A headers N/A content-type application/json N/A url N/A N/A N/A self __class__ url_ api/messages/create/_QA_TOKEN_TEST_STUDENT N/A data N/A groupId message isProject 123456789 Class is canceled True N/A r N/A N/A requests post url data N/A N/A json dumps data headers headers N/A N/A N/A self assertEquals N/A r status_code 403 N/A message:  N/A N/A N/A r json N/A message N/A *********************************************** N/A N/A N/A self _testMethodName Has finished Successfully N/A *********************************************** N/A test_messageCreate_Lecturer N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A datetime datetime now time N/A *********************************************** N/A N/A N/A self _testMethodName Has begun N/A *********************************************** N/A headers N/A content-type application/json N/A url N/A N/A N/A self __class__ url_ api/messages/create/_QA_TOKEN_TEST_LECTURER N/A data N/A groupId message isProject 123456789 Class is canceled True N/A r N/A N/A requests post url data N/A N/A json dumps data headers headers N/A N/A N/A self assertEquals N/A r status_code 403 N/A message:  N/A N/A N/A r json N/A message N/A *********************************************** N/A N/A N/A self _testMethodName Has finished Successfully N/A *********************************************** N/A test_messageCreate_INVALIDTOKEN N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A datetime datetime now time N/A *********************************************** N/A N/A N/A self _testMethodName Has begun N/A *********************************************** N/A headers N/A content-type application/json N/A url N/A N/A N/A self __class__ url_ api/messages/create/invlaidToken N/A data N/A groupId message isProject 123456789 Class is canceled True N/A r N/A N/A requests post url data N/A N/A json dumps data headers headers N/A N/A N/A self assertEquals N/A r status_code 403 N/A message:  N/A N/A N/A r json N/A message N/A *********************************************** N/A N/A N/A self _testMethodName Has finished Successfully N/A *********************************************** N/A N/A 
    /api/messages/deleteMessage/<string:token>/<string:msgId>
    OPTIONS DELETE
    token  msgId  user  msg  e
    >This Call will delete a message by owner token
    Route Parameters
    - SeToken: token - msgId: 1234567890

    Payload
    - NONE
     test_deleteMessage_Student N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A datetime datetime now time N/A *********************************************** N/A N/A N/A self _testMethodName Has begun N/A *********************************************** N/A r N/A N/A requests delete N/A N/A N/A self __class__ url_ api/messages/deleteMessage/_QA_TOKEN_TEST_STUDENT/<string:msgID N/A N/A N/A self assertEquals N/A r status_code 204 N/A *********************************************** N/A N/A N/A self _testMethodName Has finished Successfully N/A *********************************************** N/A test_deleteMessage_Lecturer N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A datetime datetime now time N/A *********************************************** N/A N/A N/A self _testMethodName Has begun N/A *********************************************** N/A r N/A N/A requests delete N/A N/A N/A self __class__ url_ api/messages/deleteMessage/_QA_TOKEN_TEST_LECTURER/<string:msgID N/A N/A N/A self assertEquals N/A r status_code 204 N/A *********************************************** N/A N/A N/A self _testMethodName Has finished Successfully N/A *********************************************** N/A test_deleteMessage_invalidToken N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A datetime datetime now time N/A *********************************************** N/A N/A N/A self _testMethodName Has begun N/A *********************************************** N/A r N/A N/A requests delete N/A N/A N/A self __class__ url_ api/messages/deleteMessage/InvalidToken/<string:msgID N/A N/A N/A self assertEquals N/A r status_code 204 N/A *********************************************** N/A N/A N/A self _testMethodName Has finished Successfully N/A *********************************************** N/A N/A 
    /api/messages/getAllUserMessages/<string:token>
    HEAD OPTIONS GET
        token  user  arr  allMsgs  projectMsgs  m  msgDic  msgTime  i
    >This Call will return an array of all messages (sorted by date),

    Route Parameters
    - SeToken: token
    - groupId: 1234567890

        Payload
    - NONE

     test_getAllUserMessages_Lecturer N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A datetime datetime now time N/A *********************************************** N/A N/A N/A self _testMethodName Has begun N/A *********************************************** N/A r N/A N/A requests get N/A N/A N/A self __class__ url_ api/messages/getAllUserMessages/_QA_TOKEN_TEST_LECTURER N/A N/A N/A self assertEquals N/A r status_code 200 N/A *********************************************** N/A N/A N/A self _testMethodName Has finished Successfully N/A *********************************************** N/A test_getAllUserMessages_STUDENT N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A datetime datetime now time N/A *********************************************** N/A N/A N/A self _testMethodName Has begun N/A *********************************************** N/A r N/A N/A requests get N/A N/A N/A self __class__ url_ api/messages/getAllUserMessages/_QA_TOKEN_TEST_STUDENT N/A N/A N/A self assertEquals N/A r status_code 200 N/A *********************************************** N/A N/A N/A self _testMethodName Has finished Successfully N/A *********************************************** N/A N/A N/A 
/api/messages/create/<string:token>
POST OPTIONS
token  user  payload  e  msg
This call will create a new Message in the DB
Route Parameters
- seToken: 'seToken'

Payload
- JSON Object, Example:
{
'groupId' : 123456789,
'message' : 'Class is canceled',
'isProject' : true
}
