Esempio 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)
Esempio 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)
Esempio n. 3
0
 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'))
Esempio n. 7
0
 def test_split_file_branches_trunk_subdir(self):
     self.assertEqual(svnpoller.split_file_branches("trunk/subdir/"), (None, "subdir/"))
Esempio 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)
Esempio n. 9
0
 def test_split_file_branches_branch(self):
     self.assertEqual(
         svnpoller.split_file_branches('branches/1.5.x/'),
         ('branches/1.5.x', ''))
Esempio n. 10
0
 def test_split_file_branches_trunk(self):
     self.assertEqual(svnpoller.split_file_branches('trunk/'), (None, ''))
Esempio n. 11
0
 def test_split_file_branches_otherdir(self):
     # other dirs are ignored:
     self.assertEqual(svnpoller.split_file_branches("tags/testthis/subdir/"), None)
Esempio 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")
     )
Esempio n. 13
0
 def test_split_file_branches_branch(self):
     self.assertEqual(svnpoller.split_file_branches("branches/1.5.x/"), ("branches/1.5.x", ""))
Esempio 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'))
Esempio 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'))
Esempio 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)
Esempio 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)
Esempio 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'))
Esempio n. 19
0
 def test_split_file_branches_branch(self):
     self.assertEqual(svnpoller.split_file_branches('branches/1.5.x/'),
                      ('branches/1.5.x', ''))
Esempio 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)
Esempio n. 21
0
 def test_split_file_branches_trunk(self):
     self.assertEqual(svnpoller.split_file_branches("trunk/"), (None, ""))