2017-05-17 20:31:18 +03:00
|
|
|
import pytest
|
|
|
|
from atmo import names
|
|
|
|
|
|
|
|
|
2019-01-16 15:55:23 +03:00
|
|
|
@pytest.mark.parametrize("separator", ["-", "_"])
|
2017-05-17 20:31:18 +03:00
|
|
|
def test_names(separator):
|
|
|
|
name = names.random_scientist(separator=separator)
|
|
|
|
adjective, noun, suffix = name.split(separator)
|
|
|
|
assert adjective in names.adjectives
|
|
|
|
assert noun in names.scientists
|
|
|
|
assert len(suffix) == 4
|
|
|
|
assert int(suffix)
|