Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 990 for fo2o (0.06 sec)

  1. okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt

            """.trimIndent(),
          )
        assertThat(verifier.verify("foo.com", session)).isTrue()
        assertThat(verifier.verify("a.foo.com", session)).isFalse()
        assertThat(verifier.verify("foo.com", session)).isTrue()
        assertThat(verifier.verify("a.foo.com", session)).isFalse()
      }
    
      @Test fun verifyMultipleCn() {
        // CN=foo.com, CN=bar.com, CN=花子.co.jp
        val session =
          session(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  2. docs_src/app_testing/app_b_an/test_main.py

    client = TestClient(app)
    
    
    def test_read_item():
        response = client.get("/items/foo", headers={"X-Token": "coneofsilence"})
        assert response.status_code == 200
        assert response.json() == {
            "id": "foo",
            "title": "Foo",
            "description": "There goes my hero",
        }
    
    
    def test_read_item_bad_token():
        response = client.get("/items/foo", headers={"X-Token": "hailhydra"})
        assert response.status_code == 400
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Aug 15 22:31:16 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. docs_src/app_testing/app_b_an_py310/test_main.py

    client = TestClient(app)
    
    
    def test_read_item():
        response = client.get("/items/foo", headers={"X-Token": "coneofsilence"})
        assert response.status_code == 200
        assert response.json() == {
            "id": "foo",
            "title": "Foo",
            "description": "There goes my hero",
        }
    
    
    def test_read_item_bad_token():
        response = client.get("/items/foo", headers={"X-Token": "hailhydra"})
        assert response.status_code == 400
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Aug 15 22:31:16 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. tests/test_dependency_overrides.py

            ),
            (
                "/main-depends/?q=foo",
                200,
                {"in": "main-depends", "params": {"q": "foo", "skip": 5, "limit": 10}},
            ),
            (
                "/main-depends/?q=foo&skip=100&limit=200",
                200,
                {"in": "main-depends", "params": {"q": "foo", "skip": 5, "limit": 10}},
            ),
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MultisetsImmutableEntryTest.java

        assertFalse(entry("foo", 1).equals(control("bar", 1)));
        assertFalse(entry("foo", 1).equals(new Object()));
        assertFalse(entry("foo", 1).equals(null));
      }
    
      public void testEqualsNull() {
        assertEquals(control(NE, 1), entry(NE, 1));
        assertFalse(control(NE, 1).equals(entry(NE, 2)));
        assertFalse(entry(NE, 1).equals(control("bar", 1)));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableTableTest.java

        assertEquals(ImmutableTable.of(), builder.build());
        assertEquals(ImmutableTable.of('a', 1, "foo"), builder.put('a', 1, "foo").build());
        Table<Character, Integer, String> expectedTable = HashBasedTable.create();
        expectedTable.put('a', 1, "foo");
        expectedTable.put('b', 1, "bar");
        expectedTable.put('a', 2, "baz");
        Table<Character, Integer, String> otherTable = HashBasedTable.create();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  7. tests/test_query.py

        assert response.status_code == 200
        assert response.json() == "foo bar"
    
    
    def test_query_int_optional_query_50():
        response = client.get("/query/int/optional?query=50")
        assert response.status_code == 200
        assert response.json() == "foo bar 50"
    
    
    def test_query_int_optional_query_foo():
        response = client.get("/query/int/optional?query=foo")
        assert response.status_code == 422
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ComparatorsTest.java

        Comparator<Foo> natural = Ordering.natural();
        Comparator<Foo> reverse = Collections.reverseOrder(natural);
        Foo a = new Foo(1);
        Foo b = new Foo(1);
        assertThat(min(a, b, reverse)).isSameInstanceAs(a);
        assertThat(max(a, b, reverse)).isSameInstanceAs(a);
      }
    
      private static class Foo implements Comparable<Foo> {
        final Integer value;
    
        Foo(int value) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  9. tests/test_ambiguous_params.py

        @app.get("/multi-query")
        async def get(foo: Annotated[int, Query(gt=2), Query(lt=10)]):
            return foo
    
        with pytest.raises(
            AssertionError,
            match=(
                "Cannot specify `Depends` in `Annotated` and default value"
                " together for 'foo'"
            ),
        ):
    
            @app.get("/")
            async def get2(foo: Annotated[int, Depends(dep)] = Depends(dep)):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Dec 12 00:22:47 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. tests/test_required_noneable.py

        response = client.get("/query", params={"q": "foo"})
        assert response.status_code == 200
        assert response.json() == "foo"
    
    
    def test_required_nonable_explicit_query_invalid():
        response = client.get("/explicit-query")
        assert response.status_code == 422
    
    
    def test_required_nonable_explicit_query_value():
        response = client.get("/explicit-query", params={"q": "foo"})
        assert response.status_code == 200
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 19:08:31 UTC 2022
    - 1.5K bytes
    - Viewed (0)
Back to top