diff --git a/tests/test_factory.py b/tests/test_factory.py index a93df7cffe6..204b80bf009 100644 --- a/tests/test_factory.py +++ b/tests/test_factory.py @@ -889,6 +889,14 @@ def test_http_method(self): assert expected_methods == sorted(got_methods) + def test_dga(self): + faker = Faker() + + assert faker.dga() != faker.dga() + + expected_domain = 'cqphixmpdfp.com' + assert faker.dga(day=1, month=1, year=1000, tld='com', length=11) == expected_domain + def test_random_sample_unique(self): from faker.providers import BaseProvider provider = BaseProvider(self.generator)