- Sort Score
- Result 10 results
- Languages All
Results 711 - 720 of 1,255 for assertIn (0.06 sec)
-
src/test/java/jcifs/tests/NamingTest.java
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.tests; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.net.MalformedURLException; import java.net.URL; import java.net.UnknownHostException; import java.nio.ByteBuffer;
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sat Jun 06 10:48:05 UTC 2020 - 7K bytes - Viewed (0) -
docs_src/custom_response/tutorial009c.py
import orjson from fastapi import FastAPI, Response app = FastAPI() class CustomORJSONResponse(Response): media_type = "application/json" def render(self, content: Any) -> bytes: assert orjson is not None, "orjson must be installed" return orjson.dumps(content, option=orjson.OPT_INDENT_2) @app.get("/", response_class=CustomORJSONResponse) async def main():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Sep 01 09:32:30 UTC 2022 - 451 bytes - Viewed (0) -
tests/test_tutorial/test_custom_response/test_tutorial009b.py
file_path: Path = tmp_path / "large-video-file.mp4" tutorial009b.some_file_path = str(file_path) test_content = b"Fake video bytes" file_path.write_bytes(test_content) response = client.get("/")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Jul 03 19:51:28 UTC 2021 - 490 bytes - Viewed (0) -
okhttp-brotli/build.gradle.kts
testImplementation(libs.conscrypt.openjdk) testImplementation(libs.junit) testImplementation(libs.kotlin.test.common) testImplementation(libs.kotlin.test.junit) testImplementation(libs.assertk) } mavenPublishing { configure(KotlinJvm(javadocJar = JavadocJar.Empty()))
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 06 05:31:00 UTC 2024 - 819 bytes - Viewed (0) -
tests/test_orjson_response_class.py
return {key: "Hello World", 1: 1} client = TestClient(app) def test_orjson_non_str_keys(): with client: response = client.get("/orjson_non_str_keys")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Sep 02 10:17:31 UTC 2022 - 562 bytes - Viewed (0) -
cmd/signature-v4-utils_test.go
t.Errorf("Test %d: Expected the result to `%v`, but instead got `%v`", i+1, testCase.expectedResult, actualResult) } } } // TestIsValidRegion - Tests validate the comparison logic for asserting whether the region from http request is valid. func TestIsValidRegion(t *testing.T) { testCases := []struct { inputReqRegion string inputConfRegion string expectedResult bool }{
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 05 21:26:41 UTC 2024 - 14.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/DosFileFilter.java
/* This returns true if the file's attributes contain any of the attributes * specified for this filter. The wildcard has no influence on this * method as the server should have performed that filtering already. The * attributes are asserted here only because server file systems may not * support filtering by all attributes (e.g. even though ATTR_DIRECTORY was * specified the server may still return objects that are not directories). */
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 1.9K bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial003_04.py
import pytest from fastapi.exceptions import FastAPIError def test_invalid_response_model(): with pytest.raises(FastAPIError): from docs_src.response_model.tutorial003_04 import app
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Jan 10 16:22:47 UTC 2023 - 236 bytes - Viewed (0) -
src/main/java/jcifs/smb/DosFileFilter.java
* specified for this filter. The wildcard has no influence on this * method as the server should have performed that filtering already. The * attributes are asserted here only because server file systems may not * support filtering by all attributes (e.g. even though ATTR_DIRECTORY was * specified the server may still return objects that are not directories). */ @Override
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 2.1K bytes - Viewed (0) -
tests/test_tutorial/test_custom_response/test_tutorial009.py
file_path: Path = tmp_path / "large-video-file.mp4" tutorial009.some_file_path = str(file_path) test_content = b"Fake video bytes" file_path.write_bytes(test_content) response = client.get("/")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Jul 03 19:51:28 UTC 2021 - 487 bytes - Viewed (0)