Exemplo n.º 1
0
 def test_split_file_branches(self):
     self.assertEqual(svnpoller.split_file_branches('trunk/subdir/file.c'),
                      (None, 'subdir/file.c'))
     self.assertEqual(
         svnpoller.split_file_branches('branches/1.5.x/subdir/file.c'),
         ('branches/1.5.x', 'subdir/file.c'))
     # tags are ignored:
     self.assertEqual(
         svnpoller.split_file_branches('tags/testthis/subdir/file.c'), None)
Exemplo n.º 2
0
 def test_split_file_branches(self):
     self.assertEqual(
             svnpoller.split_file_branches('trunk/subdir/file.c'),
             (None, 'subdir/file.c'))
     self.assertEqual(
             svnpoller.split_file_branches('branches/1.5.x/subdir/file.c'),
             ('branches/1.5.x', 'subdir/file.c'))
     # tags are ignored:
     self.assertEqual(
             svnpoller.split_file_branches('tags/testthis/subdir/file.c'),
             None)
Exemplo n.º 3
0
 def test_split_file_branches_trunk(self):
     self.assertEqual(
         svnpoller.split_file_branches('trunk/'),
         (None, ''))
Exemplo n.º 4
0
 def test_split_file_branches_otherfile(self):
     # other files are ignored:
     self.assertEqual(
         svnpoller.split_file_branches('tags/testthis/subdir/file.c'), None)
Exemplo n.º 5
0
 def test_split_file_branches_branch_invalid(self):
     # file named branches/1.5.x (not a directory):
     self.assertEqual(svnpoller.split_file_branches('branches/1.5.x'), None)
Exemplo n.º 6
0
 def test_split_file_branches_branch_subfile(self):
     self.assertEqual(
         svnpoller.split_file_branches('branches/1.5.x/subdir/file.c'),
         ('branches/1.5.x', 'subdir/file.c'))
Exemplo n.º 7
0
 def test_split_file_branches_trunk_subdir(self):
     self.assertEqual(svnpoller.split_file_branches("trunk/subdir/"), (None, "subdir/"))
Exemplo n.º 8
0
 def test_split_file_branches_branch_invalid(self):
     # file named branches/1.5.x (not a directory):
     self.assertEqual(
         svnpoller.split_file_branches('branches/1.5.x'),
         None)
Exemplo n.º 9
0
 def test_split_file_branches_branch(self):
     self.assertEqual(
         svnpoller.split_file_branches('branches/1.5.x/'),
         ('branches/1.5.x', ''))
Exemplo n.º 10
0
 def test_split_file_branches_trunk(self):
     self.assertEqual(svnpoller.split_file_branches('trunk/'), (None, ''))
Exemplo n.º 11
0
 def test_split_file_branches_otherdir(self):
     # other dirs are ignored:
     self.assertEqual(svnpoller.split_file_branches("tags/testthis/subdir/"), None)
Exemplo n.º 12
0
 def test_split_file_branches_branch_subfile(self):
     self.assertEqual(
         svnpoller.split_file_branches("branches/1.5.x/subdir/file.c"), ("branches/1.5.x", "subdir/file.c")
     )
Exemplo n.º 13
0
 def test_split_file_branches_branch(self):
     self.assertEqual(svnpoller.split_file_branches("branches/1.5.x/"), ("branches/1.5.x", ""))
Exemplo n.º 14
0
 def test_split_file_branches_trunk_subfile(self):
     self.assertEqual(
         svnpoller.split_file_branches('trunk/subdir/file.c'),
         (None, 'subdir/file.c'))
Exemplo n.º 15
0
 def test_split_file_branches_trunk_subfile(self):
     self.assertEqual(svnpoller.split_file_branches('trunk/subdir/file.c'),
                      (None, 'subdir/file.c'))
Exemplo n.º 16
0
 def test_split_file_branches_trunk_invalid(self):
     # file named trunk (not a directory):
     self.assertEqual(
         svnpoller.split_file_branches('trunk'),
         None)
Exemplo n.º 17
0
 def test_split_file_branches_trunk_invalid(self):
     # file named trunk (not a directory):
     self.assertEqual(svnpoller.split_file_branches('trunk'), None)
Exemplo n.º 18
0
 def test_split_file_branches_branch_subfile(self):
     self.assertEqual(
         svnpoller.split_file_branches('branches/1.5.x/subdir/file.c'),
         ('branches/1.5.x', 'subdir/file.c'))
Exemplo n.º 19
0
 def test_split_file_branches_branch(self):
     self.assertEqual(svnpoller.split_file_branches('branches/1.5.x/'),
                      ('branches/1.5.x', ''))
Exemplo n.º 20
0
 def test_split_file_branches_otherfile(self):
     # other files are ignored:
     self.assertEqual(
         svnpoller.split_file_branches('tags/testthis/subdir/file.c'),
         None)
Exemplo n.º 21
0
 def test_split_file_branches_trunk(self):
     self.assertEqual(svnpoller.split_file_branches("trunk/"), (None, ""))