Skip to content

Commit

Permalink
adding more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pylover authored and tehmaze committed Oct 8, 2015
1 parent 485f76a commit 3b8cf07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ def test_eq_le_gt(self):

def test_guesstimation(self):
self.assertEqual(IP('192.168.0.1', mask=28).guess_network(), Network('192.168.0.0/28'))
self.assertEqual(IP('192.168.0.1/24').guess_network(), Network('192.168.0.0/24'))
self.assertEqual(IP('192.168.0.1/255.255.255.0', mask=28).guess_network(), Network('192.168.0.0/24'))
self.assertEqual(IP('192.168.0.56', mask=26).guess_network(), Network('192.168.0.0/26'))
self.assertEqual(IP('192.168.0.1').guess_network(), Network('192.168.0.1/32'))

Expand Down

0 comments on commit 3b8cf07

Please sign in to comment.