mirror of
https://github.com/django-components/django-components.git
synced 2025-09-21 21:22:26 +00:00

Some checks are pending
Docs - build & deploy / docs (push) Waiting to run
Run tests / build (ubuntu-latest, 3.10) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.11) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.12) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.13) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.8) (push) Waiting to run
Run tests / test_sampleproject (3.13) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.9) (push) Waiting to run
Run tests / build (windows-latest, 3.10) (push) Waiting to run
Run tests / build (windows-latest, 3.11) (push) Waiting to run
Run tests / build (windows-latest, 3.12) (push) Waiting to run
Run tests / build (windows-latest, 3.13) (push) Waiting to run
Run tests / build (windows-latest, 3.8) (push) Waiting to run
Run tests / build (windows-latest, 3.9) (push) Waiting to run
Run tests / test_docs (3.13) (push) Waiting to run
15 lines
697 B
Python
15 lines
697 B
Python
from django_components.util.misc import is_str_wrapped_in_quotes
|
|
|
|
|
|
class TestUtils:
|
|
def test_is_str_wrapped_in_quotes(self):
|
|
assert is_str_wrapped_in_quotes("word") is False
|
|
assert is_str_wrapped_in_quotes('word"') is False
|
|
assert is_str_wrapped_in_quotes('"word') is False
|
|
assert is_str_wrapped_in_quotes('"word"') is True
|
|
assert is_str_wrapped_in_quotes("\"word'") is False
|
|
assert is_str_wrapped_in_quotes('"word" ') is False
|
|
assert is_str_wrapped_in_quotes('"') is False
|
|
assert is_str_wrapped_in_quotes("") is False
|
|
assert is_str_wrapped_in_quotes('""') is True
|
|
assert is_str_wrapped_in_quotes("\"'") is False
|