示例#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)
 def test_split_file_branches_trunk(self):
     self.assertEqual(
         svnpoller.split_file_branches('trunk/'),
         (None, ''))
 def test_split_file_branches_otherfile(self):
     # other files are ignored:
     self.assertEqual(
         svnpoller.split_file_branches('tags/testthis/subdir/file.c'), None)
 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)
 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'))
 def test_split_file_branches_trunk_subdir(self):
     self.assertEqual(svnpoller.split_file_branches("trunk/subdir/"), (None, "subdir/"))
 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)
 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, ""))