def test_split_too_many_colons(self): with self.assertRaises(ValueError): _split_path('website:api:/tmp/path.txt')
def test_split_path_with_name(self): self.assertEqual(_split_path('website:/tmp/path.txt'), ('website', '/tmp/path.txt'))
def test_split_path_no_name(self): self.assertEqual(_split_path('/tmp/path.txt'), (None, '/tmp/path.txt'))