import datetime
from unittest import TestCase

from access_control import models


DB = models.DB


class SiteModelValidationTestCase(TestCase):

    def test_sites_exist(self):
        sites = DB.session.get_bind().execute("SELECT * FROM site;")
        self.assertEqual(sites.rowcount, 19)


    def test_site_deletion_method_id(self):
        index = 0
        sites = DB.session.get_bind().execute("SELECT * FROM site;")
        for site in sites:
            self.assertEqual(site["deletion_method_id"], 0)

d9efb4bd2247003d88520d6c9a052e896200ce31
<mask token>


class SiteModelValidationTestCase(TestCase):

    def test_sites_exist(self):
        sites = DB.session.get_bind().execute('SELECT * FROM site;')
        self.assertEqual(sites.rowcount, 19)
    <mask token>

<mask token>


class SiteModelValidationTestCase(TestCase):

    def test_sites_exist(self):
        sites = DB.session.get_bind().execute('SELECT * FROM site;')
        self.assertEqual(sites.rowcount, 19)

    def test_site_deletion_method_id(self):
        index = 0
        sites = DB.session.get_bind().execute('SELECT * FROM site;')
        for site in sites:
            self.assertEqual(site['deletion_method_id'], 0)

<mask token>
DB = models.DB


class SiteModelValidationTestCase(TestCase):

    def test_sites_exist(self):
        sites = DB.session.get_bind().execute('SELECT * FROM site;')
        self.assertEqual(sites.rowcount, 19)

    def test_site_deletion_method_id(self):
        index = 0
        sites = DB.session.get_bind().execute('SELECT * FROM site;')
        for site in sites:
            self.assertEqual(site['deletion_method_id'], 0)

import datetime
from unittest import TestCase
from access_control import models
DB = models.DB


class SiteModelValidationTestCase(TestCase):

    def test_sites_exist(self):
        sites = DB.session.get_bind().execute('SELECT * FROM site;')
        self.assertEqual(sites.rowcount, 19)

    def test_site_deletion_method_id(self):
        index = 0
        sites = DB.session.get_bind().execute('SELECT * FROM site;')
        for site in sites:
            self.assertEqual(site['deletion_method_id'], 0)

import datetime
from unittest import TestCase

from access_control import models


DB = models.DB


class SiteModelValidationTestCase(TestCase):

    def test_sites_exist(self):
        sites = DB.session.get_bind().execute("SELECT * FROM site;")
        self.assertEqual(sites.rowcount, 19)


    def test_site_deletion_method_id(self):
        index = 0
        sites = DB.session.get_bind().execute("SELECT * FROM site;")
        for site in sites:
            self.assertEqual(site["deletion_method_id"], 0)
