from django.test import TestCase

from core.models.workshop_category import WorkshopCategory


class WorkshopCategoryModelTest(TestCase):

    @staticmethod
    def test_create_valid():
        WorkshopCategory(category=5)

    def test_to_string(self):
        self.assertEquals(WorkshopCategory(category=5).__str__(), 'Kategorie 5')

from django.test import TestCase

from core.models.workshop_category import WorkshopCategory


class WorkshopCategoryModelTest(TestCase):

    @staticmethod
    def test_create_valid():
        WorkshopCategory(category=5)

    def test_to_string(self):
        self.assertEquals(WorkshopCategory(category=5).__str__(), 'Kategorie 5')
