<gh_stars>10-100
import unittest

from microproxy.context.base import parse_version


class TestBase(unittest.TestCase):
    def test_parse_release_version(self):
        self.assertEquals((0, 4, 0), parse_version("0.4.0"))

    def test_parse_minus_dev_version(self):
        self.assertEquals((0, 4, 0), parse_version("0.4.0-dev"))

    def test_parse_plus_dev_version(self):
        self.assertEquals((0, 4, 0), parse_version("0.4.0+dev"))

import unittest

from microproxy.context.base import parse_version


class TestBase(unittest.TestCase):
    def test_parse_release_version(self):
        self.assertEquals((0, 4, 0), parse_version("0.4.0"))

    def test_parse_minus_dev_version(self):
        self.assertEquals((0, 4, 0), parse_version("0.4.0-dev"))

    def test_parse_plus_dev_version(self):
        self.assertEquals((0, 4, 0), parse_version("0.4.0+dev"))