示例#1
0
 def test_war_root(self):
     """Return the war archive when applied to just the archive."""
     self.assertEqual(brms.enclosing_war_archive('/foo/kie-server.war'),
                      '/foo/kie-server.war')
示例#2
0
 def test_no_war_archive(self):
     """Return None when there is no war archive."""
     self.assertIsNone(brms.enclosing_war_archive('/foo/bar/baz'))
示例#3
0
 def test_enclosing(self):
     """Return the enclosing war archive."""
     self.assertEqual(
         brms.enclosing_war_archive('/foo/kie-server.war/bar/baz'),
         '/foo/kie-server.war')