Пример #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)
Пример #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)
Пример #3
0
 def test_split_file_branches_trunk(self):
     self.assertEqual(
         svnpoller.split_file_branches('trunk/'),
         (None, ''))
Пример #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)
Пример #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)
Пример #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'))
Пример #7
0
 def test_split_file_branches_trunk_subdir(self):
     self.assertEqual(svnpoller.split_file_branches("trunk/subdir/"), (None, "subdir/"))
Пример #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)
Пример #9
0
 def test_split_file_branches_branch(self):
     self.assertEqual(
         svnpoller.split_file_branches('branches/1.5.x/'),
         ('branches/1.5.x', ''))
Пример #10
0
 def test_split_file_branches_trunk(self):
     self.assertEqual(svnpoller.split_file_branches('trunk/'), (None, ''))
Пример #11
0
 def test_split_file_branches_otherdir(self):
     # other dirs are ignored:
     self.assertEqual(svnpoller.split_file_branches("tags/testthis/subdir/"), None)
Пример #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")
     )
Пример #13
0
 def test_split_file_branches_branch(self):
     self.assertEqual(svnpoller.split_file_branches("branches/1.5.x/"), ("branches/1.5.x", ""))
Пример #14
0
 def test_split_file_branches_trunk_subfile(self):
     self.assertEqual(
         svnpoller.split_file_branches('trunk/subdir/file.c'),
         (None, 'subdir/file.c'))
Пример #15
0
 def test_split_file_branches_trunk_subfile(self):
     self.assertEqual(svnpoller.split_file_branches('trunk/subdir/file.c'),
                      (None, 'subdir/file.c'))
Пример #16
0
 def test_split_file_branches_trunk_invalid(self):
     # file named trunk (not a directory):
     self.assertEqual(
         svnpoller.split_file_branches('trunk'),
         None)
Пример #17
0
 def test_split_file_branches_trunk_invalid(self):
     # file named trunk (not a directory):
     self.assertEqual(svnpoller.split_file_branches('trunk'), None)
Пример #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'))
Пример #19
0
 def test_split_file_branches_branch(self):
     self.assertEqual(svnpoller.split_file_branches('branches/1.5.x/'),
                      ('branches/1.5.x', ''))
Пример #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)
Пример #21
0
 def test_split_file_branches_trunk(self):
     self.assertEqual(svnpoller.split_file_branches("trunk/"), (None, ""))