Lines Matching refs:PythonString
161 dict.SetItemForKey(PythonString("sys"), m_sys_module);
226 EXPECT_FALSE(PythonString::Check(py_bytes));
249 // Test that strings behave correctly when wrapped by a PythonString.
254 // Verify that `PythonString` works correctly when given a PyUnicode object.
256 EXPECT_TRUE(PythonString::Check(py_unicode));
257 PythonString python_unicode(PyRefType::Owned, py_unicode);
261 // Test that creating a `PythonString` object works correctly with the
263 PythonString constructed_string(test_string2);
270 PythonString str(GetString);
273 PythonString str_str = str.Str();
301 PythonString constructed_string(test_string);
319 list_items[1] = PythonString(string_value1);
331 EXPECT_TRUE(PythonString::Check(chk_value2.get()));
334 PythonString chk_str(PyRefType::Borrowed, chk_value2.get());
350 PythonString string(string_value1);
360 EXPECT_TRUE(PythonString::Check(chk_value2.get()));
363 PythonString chk_str(PyRefType::Borrowed, chk_value2.get());
376 list.AppendItem(PythonString(string_value1));
403 PythonString string_value("Test");
417 PythonString string_value("Test");
429 PythonString string_value("Test");
442 PythonString string_value("Test");
466 py_keys[0] = PythonString(key_0);
469 py_values[1] = PythonString(value_1);
484 EXPECT_TRUE(PythonString::Check(chk_value2.get()));
486 PythonString chk_str(PyRefType::Borrowed, chk_value2.get());
503 PythonString keys[dict_entries];
506 keys[0] = PythonString(key_0);
507 keys[1] = PythonString(key_1);
509 values[1] = PythonString(value_1);
524 EXPECT_TRUE(PythonString::Check(chk_value2.get()));
527 PythonString chk_str(PyRefType::Borrowed, chk_value2.get());
541 dict.SetItemForKey(PythonString(string_key0), PythonString(string_value0));
542 dict.SetItemForKey(PythonString(string_key1), PythonInteger(int_value1));
568 PythonString two("two");
608 python_dict.SetItemForKey(PythonString(key_name), python_ull_value);