def test_verify_variables_total_host_count(self):
     test_subnet = Subnet()
     test_subnet.total_host_count = 'THIS IS A TEST'
     self.assertFalse(test_subnet.verify_total_host_count())
     self.assertFalse(test_subnet.verify_variables())
     test_subnet.total_host_count = '123'
     self.assertFalse(test_subnet.verify_total_host_count())
     self.assertFalse(test_subnet.verify_variables())
     test_subnet.total_host_count = '64'
     self.assertTrue(test_subnet.verify_total_host_count())
     self.assertTrue(test_subnet.verify_variables())
 def test_calculate_assignable_host_count(self):
     test_subnet = Subnet()
     test_subnet.total_host_count = 64
     test_subnet.calculate_assignable_host_count()
     self.assertEqual(test_subnet.assignable_host_count, 62)