Module ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Call NameLoad Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Call NameLoad Str AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr keyword Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad Call NameLoad attr attr keyword Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Call NameLoad Str AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Call NameLoad Str AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad Call NameLoad attr attr keyword Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Call NameLoad Str AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A django.contrib.auth get_user_model N/A mock django.test TestCase pushy.utils send_push_notification pushy.models PushNotification Device AddTaskTestCase N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self payload N/A key1 key2 value1 value2 N/A test_add_task N/A N/A self N/A N/A N/A mock_task N/A N/A mock Mock N/A N/A N/A mock patch pushy.tasks.create_push_notification_groups.delay new mock_task mocked_task N/A N/A N/A send_push_notification some test push notification N/A self payload N/A notification N/A N/A N/A PushNotification objects latest id N/A N/A N/A mocked_task assert_called_once_with notification_id N/A notification id N/A N/A N/A self assertEquals N/A notification payload N/A self payload N/A test_add_task_filter_device N/A N/A self N/A N/A N/A device N/A N/A N/A Device objects create key TEST_DEVICE_KEY type N/A Device DEVICE_TYPE_IOS N/A mock_task N/A N/A mock Mock N/A N/A N/A mock patch pushy.tasks.send_single_push_notification.apply_async new mock_task mocked_task N/A N/A N/A send_push_notification some other test push notification N/A self payload device device N/A notification N/A N/A N/A PushNotification objects latest id N/A N/A N/A mocked_task assert_called_with kwargs N/A device payload N/A device id N/A notification payload N/A test_add_task_filter_on_user N/A N/A self N/A N/A N/A user N/A N/A N/A N/A get_user_model objects create_user username test_user email test_user@django-pushy.com password test_password N/A mock_task N/A N/A mock Mock N/A N/A N/A mock patch pushy.tasks.create_push_notification_groups.delay new mock_task mocked_task N/A N/A N/A send_push_notification some other test push notification N/A self payload filter_user user N/A notification N/A N/A N/A PushNotification objects latest id N/A N/A N/A mocked_task assert_called_with notification_id N/A notification id N/A N/A N/A self assertEqual N/A notification filter_user N/A user id N/A N/A N/A self assertEqual N/A notification filter_type 0 N/A test_add_task_filter_on_device_type N/A N/A self N/A N/A N/A mock_task N/A N/A mock Mock N/A N/A N/A mock patch pushy.tasks.create_push_notification_groups.delay new mock_task mocked_task N/A N/A N/A send_push_notification some other test push notification N/A self payload filter_type N/A Device DEVICE_TYPE_IOS N/A notification N/A N/A N/A PushNotification objects latest id N/A N/A N/A mocked_task assert_called_with notification_id N/A notification id N/A N/A N/A self assertEqual N/A notification filter_user 0 N/A N/A N/A self assertEqual N/A notification filter_type N/A Device DEVICE_TYPE_IOS N/A test_add_task_filter_on_device_type_and_user N/A N/A self N/A N/A N/A user N/A N/A N/A N/A get_user_model objects create_user username test_user email test_user@django-pushy.com password test_password N/A mock_task N/A N/A mock Mock N/A N/A N/A mock patch pushy.tasks.create_push_notification_groups.delay new mock_task mocked_task N/A N/A N/A send_push_notification some other test push notification N/A self payload filter_type N/A Device DEVICE_TYPE_IOS filter_user user N/A notification N/A N/A N/A PushNotification objects latest id N/A N/A N/A mocked_task assert_called_with notification_id N/A notification id N/A N/A N/A self assertEqual N/A notification filter_user N/A user id N/A N/A N/A self assertEqual N/A notification filter_type N/A Device DEVICE_TYPE_IOS N/A N/A