Mercurial > iscconf
changeset 12:4f85c429521e
Add tests for bug #1
| author | Radomir Dopieralski <sheep-devel@sheep.art.pl> |
|---|---|
| date | Tue, 31 Jul 2012 15:28:35 +0200 |
| parents | 9ad2e3f1c58c |
| children | bcfb8ce522a8 |
| files | tests/test_dhcp.py |
| diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test_dhcp.py Tue Jul 31 15:21:22 2012 +0200 +++ b/tests/test_dhcp.py Tue Jul 31 15:28:35 2012 +0200 @@ -86,5 +86,18 @@ }) + def test_no_key(self): + data = iscconf.parse("""allow-query { "none"; };""") + self.assertEqual(data, { + ('allow-query',): {(): 'none'}, + }) + + + def test_listen(self): + data = iscconf.parse("""listen-on port 1053 { "any"; };""") + self.assertEqual(data, { + ('listen-on', 'port', 1053): {(): 'any'}, + }) + if __name__ == '__main__': unittest.main()
