예제 #1
0
파일: cp_test.py 프로젝트: thieman/dusty
 def test_split_too_many_colons(self):
     with self.assertRaises(ValueError):
         _split_path('website:api:/tmp/path.txt')
예제 #2
0
파일: cp_test.py 프로젝트: thieman/dusty
 def test_split_path_with_name(self):
     self.assertEqual(_split_path('website:/tmp/path.txt'),
                      ('website', '/tmp/path.txt'))
예제 #3
0
파일: cp_test.py 프로젝트: thieman/dusty
 def test_split_path_no_name(self):
     self.assertEqual(_split_path('/tmp/path.txt'), (None, '/tmp/path.txt'))
예제 #4
0
파일: cp_test.py 프로젝트: apeace/dusty
 def test_split_too_many_colons(self):
     with self.assertRaises(ValueError):
         _split_path('website:api:/tmp/path.txt')
예제 #5
0
파일: cp_test.py 프로젝트: apeace/dusty
 def test_split_path_with_name(self):
     self.assertEqual(_split_path('website:/tmp/path.txt'), ('website', '/tmp/path.txt'))
예제 #6
0
파일: cp_test.py 프로젝트: apeace/dusty
 def test_split_path_no_name(self):
     self.assertEqual(_split_path('/tmp/path.txt'), (None, '/tmp/path.txt'))