(self)
| 31 | self.assertTrue(csguestnetwork is not None) |
| 32 | |
| 33 | def test_get_dns(self): |
| 34 | csguestnetwork = CsGuestNetwork({}, CsConfig()) |
| 35 | csguestnetwork.guest = True |
| 36 | csguestnetwork.set_dns("1.1.1.1,2.2.2.2") |
| 37 | csguestnetwork.set_router("3.3.3.3") |
| 38 | dns = csguestnetwork.get_dns() |
| 39 | self.assertTrue(len(dns) == 3) |
| 40 | csguestnetwork.set_dns("1.1.1.1") |
| 41 | dns = csguestnetwork.get_dns() |
| 42 | self.assertTrue(len(dns) == 2) |
| 43 | |
| 44 | |
| 45 | if __name__ == '__main__': |
nothing calls this directly
no test coverage detected