コード例 #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'))