File: test_make_domain.py

package info (click to toggle)
python-briefcase 0.3.22-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,300 kB
  • sloc: python: 59,405; makefile: 57
file content (14 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import pytest


@pytest.mark.parametrize(
    "bundle, candidate",
    [
        ("com.example", "example.com"),
        ("com.example.more", "more.example.com"),
    ],
)
def test_make_app_name(new_command, bundle, candidate):
    """A bundle can be converted into a domain name."""
    app_name = new_command.make_domain(bundle)
    assert app_name == candidate