def test_get_domains_multiple(self, mock_current_app): options = { "common_name": "test.netflix.net", "extensions": { "sub_alt_names": { "names": ["test2.netflix.net", "test3.netflix.net"] } } } result = plugin.get_domains(options) self.assertEqual( result, [options["common_name"], "test2.netflix.net", "test3.netflix.net"])
def test_get_domains_single(self, mock_current_app): options = { "common_name": "test.netflix.net" } result = plugin.get_domains(options) self.assertEqual(result, [options["common_name"]])