Lines Matching refs:misc
41 import pkg.misc as misc
72 """Verify that misc.valid_pub_prefix returns True or False as
75 self.assertFalse(misc.valid_pub_prefix(None))
76 self.assertFalse(misc.valid_pub_prefix(""))
77 self.assertFalse(misc.valid_pub_prefix("!@#$%^&*(*)"))
78 self.assertTrue(misc.valid_pub_prefix(
82 """Verify that misc.valid_pub_url returns True or False as
85 self.assertFalse(misc.valid_pub_url(None))
86 self.assertFalse(misc.valid_pub_url(""))
87 self.assertFalse(misc.valid_pub_url("!@#$%^&*(*)"))
88 self.assertTrue(misc.valid_pub_url(
92 """Verify that misc.out_of_memory doesn't raise an exception
95 self.assertRegexp(misc.out_of_memory(),
101 psinfo = misc.ProcFS.psinfo()
136 import pkg.misc as misc
138 misc.set_memory_limit({0})
147 misc.set_memory_limit({0} * 3, allow_override=False)