import unittest

from labels import slug_label


class LabelTests(unittest.TestCase):
    def test_mixed_separators(self):
        self.assertEqual(slug_label("  Release__ Candidate  "), "release-candidate")

    def test_outer_separators(self):
        self.assertEqual(slug_label("__Ready__"), "ready")


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