| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -245,8 +245,8 @@ def test_suppress_answer(): | |||
| 245 | 245 | ||
| 246 | 246 | # Should not be suppressed, name is different | |
| 247 | 247 | tmp = copy.copy(answer1) | |
| 248 | - tmp.key = "testname3.local." | ||
| 249 | - tmp.name = "testname3.local." | ||
| 248 | + tmp.key = "candidate3.local." | ||
| 249 | + tmp.name = "candidate3.local." | ||
| 250 | 250 | response.add_answer(query, tmp) | |
| 251 | 251 | assert len(response.answers) == 2 | |
| 252 | 252 | ||
@@ -284,7 +284,7 @@ def test_many_questions(): | |||
| 284 | 284 | generated = r.DNSOutgoing(const._FLAGS_QR_QUERY) | |
| 285 | 285 | questions = [] | |
| 286 | 286 | for i in range(100): | |
| 287 | - question = r.DNSQuestion(f"testname{i}.local.", const._TYPE_SRV, const._CLASS_IN) | ||
| 287 | + question = r.DNSQuestion(f"candidate{i}.local.", const._TYPE_SRV, const._CLASS_IN) | ||
| 288 | 288 | generated.add_question(question) | |
| 289 | 289 | questions.append(question) | |
| 290 | 290 | assert len(generated.questions) == 100 | |
@@ -446,10 +446,10 @@ def test_questions_do_not_end_up_every_packet(): | |||
| 446 | 446 | ||
| 447 | 447 | generated = r.DNSOutgoing(const._FLAGS_QR_QUERY) | |
| 448 | 448 | for i in range(35): | |
| 449 | - question = r.DNSQuestion(f"testname{i}.local.", const._TYPE_SRV, const._CLASS_IN) | ||
| 449 | + question = r.DNSQuestion(f"candidate{i}.local.", const._TYPE_SRV, const._CLASS_IN) | ||
| 450 | 450 | generated.add_question(question) | |
| 451 | 451 | answer = r.DNSService( | |
| 452 | - f"testname{i}.local.", | ||
| 452 | + f"candidate{i}.local.", | ||
| 453 | 453 | const._TYPE_SRV, | |
| 454 | 454 | const._CLASS_IN | const._CLASS_UNIQUE, | |
| 455 | 455 | const._DNS_HOST_TTL, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments