MCPcopy Index your code
hub / github.com/tensorflow/tensorboard / testPathPrefixSlash

Method testPathPrefixSlash

tensorboard/program_test.py:128–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

126 self.assertStartsWith(server.get_url(), "http://")
127
128 def testPathPrefixSlash(self):
129 # Test that checks the path prefix ends with one trailing slash
130 server = program.WerkzeugServer(
131 self._StubApplication(),
132 self.make_flags(port=0, path_prefix="/test"),
133 )
134 self.assertEndsWith(server.get_url(), "/test/")
135
136 server = program.WerkzeugServer(
137 self._StubApplication(),
138 self.make_flags(port=0, path_prefix="/test/"),
139 )
140 self.assertEndsWith(server.get_url(), "/test/")
141
142 def testSpecifiedHost(self):
143 one_passed = False

Callers

nothing calls this directly

Calls 2

make_flagsMethod · 0.95
get_urlMethod · 0.95

Tested by

no test coverage detected