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')
def test_no_war_archive(self): """Return None when there is no war archive.""" self.assertIsNone(brms.enclosing_war_archive('/foo/bar/baz'))
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')