def test_sync_perm_for_dag_creates_permissions_on_view_menus(self):
    test_dag_id = 'TEST_DAG'
    prefixed_test_dag_id = f'DAG:{test_dag_id}'
    self.security_manager.sync_perm_for_dag(test_dag_id, access_control=None)
    self.assertIsNotNone(self.security_manager.find_permission_view_menu(permissions.ACTION_CAN_READ, prefixed_test_dag_id))
    self.assertIsNotNone(self.security_manager.find_permission_view_menu(permissions.ACTION_CAN_EDIT, prefixed_test_dag_id))
def test_sync_perm_for_dag_creates_permissions_on_view_menus(self):
    test_dag_id = 'TEST_DAG'
    prefixed_test_dag_id = f'DAG:{test_dag_id}'
    self.security_manager.sync_perm_for_dag(test_dag_id, access_control=None)
    self.assertIsNotNone(self.security_manager.find_permission_view_menu(permissions.ACTION_CAN_READ, prefixed_test_dag_id))
    self.assertIsNotNone(self.security_manager.find_permission_view_menu(permissions.ACTION_CAN_EDIT, prefixed_test_dag_id))