func TestWillingToIssueWildcard(t *testing.T) { bannedDomains := []string{ `zombo.gov.us`, } pa := paImpl(t) bannedBytes, err := json.Marshal(blacklistJSON{ Blacklist: bannedDomains, }) test.AssertNotError(t, err, "Couldn't serialize banned list") f, _ := ioutil.TempFile("", "test-wildcard-banlist.txt") defer os.Remove(f.Name()) err = ioutil.WriteFile(f.Name(), bannedBytes, 0640) test.AssertNotErr