# coding: utf-8

"""
    API pro taxonomii CITES

    Toto je API pro taxonomii CITES  # noqa: E501

    OpenAPI spec version: 1.0.1
    Contact: rjaeger@sysnet.cz
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

from __future__ import absolute_import

import unittest

import taxonomy
from taxonomy.models.hybrid_type import HybridType  # noqa: E501
from taxonomy.rest import ApiException


class TestHybridType(unittest.TestCase):
    """HybridType unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def testHybridType(self):
        """Test HybridType"""
        model = taxonomy.models.hybrid_type.HybridType(
            name='Název křížence XXX',
            source=['položka 1', 'položka 2'],
            comment='Komentář TEST')
        assert 'XXX' in model.name, 'Kříženec musí obsahovat XXX'
        assert len(model.source) == 2, 'Musí být kříženec dvou druhů'
        assert 'TEST' in model.comment, 'Komentář musí obsahovat TEST'


if __name__ == '__main__':
    unittest.main()
