示例#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'))