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))

[((9, 24, 9, 62), 'recipe.utils.valid_project_slug', 'utils.valid_project_slug', ({(9, 49, 9, 61): 'project_slug'}, {}), '(project_slug)', False, 'from recipe import utils\n'), ((12, 24, 12, 62), 'recipe.utils.valid_project_slug', 'utils.valid_project_slug', ({(12, 49, 12, 61): 'project_slug'}, {}), '(project_slug)', False, 'from recipe import utils\n'), ((15, 25, 15, 63), 'recipe.utils.valid_project_slug', 'utils.valid_project_slug', ({(15, 50, 15, 62): 'project_slug'}, {}), '(project_slug)', False, 'from recipe import utils\n'), ((18, 25, 18, 63), 'recipe.utils.valid_project_slug', 'utils.valid_project_slug', ({(18, 50, 18, 62): 'project_slug'}, {}), '(project_slug)', False, 'from recipe import utils\n'), ((21, 25, 21, 63), 'recipe.utils.valid_project_slug', 'utils.valid_project_slug', ({(21, 50, 21, 62): 'project_slug'}, {}), '(project_slug)', False, 'from recipe import utils\n')]