😏
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user