Skip to content

Commit

Permalink
Added use cases in test
Browse files Browse the repository at this point in the history
  • Loading branch information
sgeulette committed May 19, 2023
1 parent 5dce67f commit 73bc226
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/imio/helpers/tests/test_transmogrifier.py
Expand Up @@ -34,6 +34,8 @@ def test_clean_value(self):
self.assertEqual(clean_value(u' strip \n "', strip=u' "'), u'strip')
self.assertEqual(clean_value(u' strip \n "', patterns=[r'"']), u'strip')
self.assertEqual(clean_value(u' strip \n "\'"', patterns=[r'^["\']+$']), u'strip')
self.assertEqual(clean_value(u' strip \n ', patterns=[]), u'strip')
self.assertEqual(clean_value(u' strip \n line2', patterns=[], osep=u'-'), u'strip-line2')

def test_correct_path(self):
self.assertEquals(correct_path(self.portal, 'abcde'), 'abcde')
Expand Down

0 comments on commit 73bc226

Please sign in to comment.