# Copyright Collab 2015-2016
# See LICENSE for details.

"""
Tests for the :py:mod:`admin_footer` versioning.
"""

from __future__ import unicode_literals

from django.test import TestCase

from admin_footer import get_version


class VersionTestCase(TestCase):
    """
    Tests for :py:mod:`~encode` versioning information.
    """
    def test_regularVersion(self):
        """
        :py:func:`~encode.get_version` returns a string version without
        any beta tags, eg. `1.0.1`.
        """
        version = (1, 0, 1)
        self.assertEqual(get_version(version), '1.0.1')

    def test_betaVersion(self):
        """
        :py:func:`~encode.get_version` returns a string version with beta tags,
        eg. `1.2.3b1`.
        """
        version = (1, 2, 3, 'b1')
        self.assertEqual(get_version(version), '1.2.3b1')

# Copyright Collab 2015-2016
# See LICENSE for details.

"""
Tests for the :py:mod:`admin_footer` versioning.
"""

from __future__ import unicode_literals

from django.test import TestCase

from admin_footer import get_version


class VersionTestCase(TestCase):
    """
    Tests for :py:mod:`~admin_footer` versioning information.
    """
    def test_regularVersion(self):
        """
        :py:func:`~admin_footer.get_version` returns a string version without
        any beta tags, e.g. ``1.0.1``.
        """
        version = (1, 0, 1)
        self.assertEqual(get_version(version), '1.0.1')

    def test_betaVersion(self):
        """
        :py:func:`~admin_footer.get_version` returns a string version with
        beta tags, e.g. ``1.2.3b1``.
        """
        version = (1, 2, 3, 'b1')
        self.assertEqual(get_version(version), '1.2.3b1')

fix typos