Ejemplo n.º 1
0
 def test_split_too_many_colons(self):
     with self.assertRaises(ValueError):
         _split_path('website:api:/tmp/path.txt')
Ejemplo n.º 2
0
 def test_split_path_with_name(self):
     self.assertEqual(_split_path('website:/tmp/path.txt'),
                      ('website', '/tmp/path.txt'))
Ejemplo n.º 3
0
 def test_split_path_no_name(self):
     self.assertEqual(_split_path('/tmp/path.txt'), (None, '/tmp/path.txt'))
Ejemplo n.º 4
0
 def test_split_too_many_colons(self):
     with self.assertRaises(ValueError):
         _split_path('website:api:/tmp/path.txt')
Ejemplo n.º 5
0
 def test_split_path_with_name(self):
     self.assertEqual(_split_path('website:/tmp/path.txt'), ('website', '/tmp/path.txt'))
Ejemplo n.º 6
0
 def test_split_path_no_name(self):
     self.assertEqual(_split_path('/tmp/path.txt'), (None, '/tmp/path.txt'))