Пример #1
0
 def get_test_instance(cls):
     return cls(NoBranchingScheme())
Пример #2
0
 def test_str(self):
     self.assertEqual("none", NoBranchingScheme().__str__())
Пример #3
0
 def setUp(self):
     TestCase.setUp(self)
     self.mapping = BzrSvnMappingv3(NoBranchingScheme())
Пример #4
0
 def test_is_tag_parent_root(self):
     self.assertFalse(NoBranchingScheme().is_tag_parent(u""))
Пример #5
0
 def test_is_tag_parent_other(self):
     self.assertFalse(NoBranchingScheme().is_tag_parent(u"trunk/foo"))
Пример #6
0
 def test_unprefix_slash(self):
     self.assertEqual(NoBranchingScheme().unprefix(u"/"), ("", "", ""))
Пример #7
0
 def test_unprefix_slash_nested(self):
     self.assertEqual(NoBranchingScheme().unprefix(u"/foo/foo"),
                      ("", "", "foo/foo"))
Пример #8
0
 def test_is_tag_empty(self):
     self.assertFalse(NoBranchingScheme().is_tag(u""))
Пример #9
0
 def test_is_tag_slash(self):
     self.assertFalse(NoBranchingScheme().is_tag(u"/"))
Пример #10
0
 def test_is_branch_dir_doubleslash(self):
     self.assertFalse(NoBranchingScheme().is_branch(u"//foo/bar"))
Пример #11
0
 def test_is_branch_dir(self):
     self.assertFalse(NoBranchingScheme().is_branch(u"foo/bar"))
Пример #12
0
 def test_is_branch_dir_slash_nested(self):
     self.assertFalse(NoBranchingScheme().is_branch(u"/foo/foo"))
Пример #13
0
 def test_is_branch_slash(self):
     self.assertTrue(NoBranchingScheme().is_branch(u"/"))
Пример #14
0
 def test_is_branch_empty(self):
     self.assertTrue(NoBranchingScheme().is_branch(u""))