コード例 #1
0
    def test_8(self):
        from music_pet.utils import parent_folder

        IN = u'''/'''

        with self.assertRaises(ValueError):
            parent_folder(IN)
コード例 #2
0
    def test_8(self):
        from music_pet.utils import parent_folder

        IN = u'''/'''

        with self.assertRaises(ValueError):
            parent_folder(IN)
コード例 #3
0
    def test_7(self):
        from music_pet.utils import parent_folder

        IN = u'''../'''
        OUT_EXPECTED = u'../../'''

        self.assertEqual(parent_folder(IN), OUT_EXPECTED)
コード例 #4
0
    def test_7(self):
        from music_pet.utils import parent_folder

        IN = u'''../'''
        OUT_EXPECTED = u'../../' ''

        self.assertEqual(parent_folder(IN), OUT_EXPECTED)