def test_pid_from_logname(self):
        
        s = 'caffe.host.user.log.INFO.20151001-132750.26943'
        res = lu.pid_from_logname(s)
        assert_is_instance(res, int)
        assert_equal(res, 26943)
        
        n = 77775
        s = n % 'log.%s'
        res = lu.pid_from_logname(s)
        assert_is_instance(res, int)
        assert_equal(res, n)
dataset/ETHPy150Open kashefy/nideep/nideep/eval/test_log_utils.py/TestPID.test_pid_from_logname/swapped operands of `%`