def test_pid_from_str_invalid_alpha(self): n = 26943 x = ['a%s' % n, '%sa' % n, '269a43'] for s in x: res = lu.pid_from_str(s) assert_is_instance(res, int) assert_equal(res, -1)
def test_pid_from_str_neg(self): n = -26943 res = lu.pid_from_str('%s' % n) assert_is_instance(res, int) assert_equal(res, n)
def test_pid_from_str(self): n = 26943 res = lu.pid_from_str('%s' % n) assert_is_instance(res, int) assert_equal(res, n)