# Path: helpers/slug.py
# class SlugError(Exception):
#     def __init__(self, value):
#     def __str__(self):
# def create(string):
# def validate(string):


import os
import re
import unittest
from helpers import slug
# -*- coding: utf-8 -*-


class SlugTest(unittest.TestCase):


    def test_slug_create(self):

        # Requires non-empty str
        with self.assertRaises(ValueError): slug.create(None)

# Path: helpers/slug.py
# class SlugError(Exception):
#     def __init__(self, value):
#     def __str__(self):
# def create(string):
# def validate(string):


# Path: tests/test_helpers/test_slug.py
import os
import re
import unittest
from helpers import slug

# -*- coding: utf-8 -*-


class SlugTest(unittest.TestCase):


    def test_slug_create(self):

        # Requires non-empty str
        with self.assertRaises(ValueError): slug.create(None)

        with self.assertRaises(ValueError): slug.create(0)