import unittest

from recipe import utils


class UtilTestCase(unittest.TestCase):
    def test_valid_project_slug(self):
        project_slug = "Recipe0123456789_mock"
        self.assertTrue(utils.valid_project_slug(project_slug))

        project_slug = 'Recipe00000000000000000000000000000000000000000000'
        self.assertTrue(utils.valid_project_slug(project_slug))

        project_slug = ""
        self.assertFalse(utils.valid_project_slug(project_slug))

        project_slug = "Recipe000000000000000000000000000000000000000000001"
        self.assertFalse(utils.valid_project_slug(project_slug))

        project_slug = "-!@#$%^&*()_+"
        self.assertFalse(utils.valid_project_slug(project_slug))

[((201, 239), 'recipe.utils.valid_project_slug', 'utils.valid_project_slug', (['project_slug'], {}), '(project_slug)\n', (225, 239), False, 'from recipe import utils\n'), ((345, 383), 'recipe.utils.valid_project_slug', 'utils.valid_project_slug', (['project_slug'], {}), '(project_slug)\n', (369, 383), False, 'from recipe import utils\n'), ((440, 478), 'recipe.utils.valid_project_slug', 'utils.valid_project_slug', (['project_slug'], {}), '(project_slug)\n', (464, 478), False, 'from recipe import utils\n'), ((586, 624), 'recipe.utils.valid_project_slug', 'utils.valid_project_slug', (['project_slug'], {}), '(project_slug)\n', (610, 624), False, 'from recipe import utils\n'), ((694, 732), 'recipe.utils.valid_project_slug', 'utils.valid_project_slug', (['project_slug'], {}), '(project_slug)\n', (718, 732), False, 'from recipe import utils\n')]