def test_no_additional_dag_permission_views_created(self):
    ab_perm_view_role = sqla_models.assoc_permissionview_role
    self.security_manager.sync_roles()
    num_pv_before = self.db.session().query(ab_perm_view_role).count()
    self.security_manager.sync_roles()
    num_pv_after = self.db.session().query(ab_perm_view_role).count()
    self.assertEqual(num_pv_before, num_pv_after)
def test_no_additional_dag_permission_views_created(self):
    ab_perm_view_role = sqla_models.assoc_permissionview_role
    self.security_manager.sync_roles()
    num_pv_before = self.db.session().query(ab_perm_view_role).count()
    self.security_manager.sync_roles()
    num_pv_after = self.db.session().query(ab_perm_view_role).count()
    self.assertEqual(num_pv_before, num_pv_after)