Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
int(x=0) -> int or long
int(x, base=10) -> int or long

Convert a number or string to an integer, or return 0 if no arguments
are given.  If x is floating point, the conversion truncates towards zero.
If x is outside the integer range, the function returns a long instead.

If x is not a number or if base is given, then x must be a string or
Unicode object representing an integer literal in the given base.  The
literal can be preceded by '+' or '-' and be surrounded by whitespace.(more...)

src/s/s/sst-0.2.4/src/sst/selftests/yui.py   sst(Download)
import sst
import sst.actions
 
sst.actions.set_base_url('http://localhost:%s/' % sst.DEVSERVER_PORT)
sst.actions.go_to('/yui')

src/s/s/sst-0.2.4/src/sst/selftests/window_size.py   sst(Download)
 
# load content so we can clock a popup
sst.actions.set_base_url('http://localhost:%s/' % sst.DEVSERVER_PORT)
sst.actions.go_to('/')
 

src/s/s/sst-0.2.4/src/sst/selftests/window_close.py   sst(Download)
    sst.actions.skip()
 
sst.actions.set_base_url('http://localhost:%s/' % sst.DEVSERVER_PORT)
sst.actions.go_to('/')
sst.actions.click_link('popup_link')

src/s/s/sst-0.2.4/src/sst/selftests/waitfor.py   sst(Download)
    return condition
 
sst.actions.set_base_url('http://localhost:%s/' % sst.DEVSERVER_PORT)
sst.actions.go_to('/')
sst.actions.set_wait_timeout(0.1)

src/s/s/sst-0.2.4/src/sst/selftests/url.py   sst(Download)
 
 
sst.actions.set_base_url('http://localhost:%s/' % sst.DEVSERVER_PORT)
sst.actions.go_to('/')
 
sst.actions.assert_url('/')
sst.actions.fails(sst.actions.assert_url, '/foo')
 
sst.actions.set_base_url('localhost:%s' % sst.DEVSERVER_PORT)
assert sst.actions.get_base_url() == 'http://localhost:%s' % sst.DEVSERVER_PORT
assert sst.actions.get_base_url() == 'http://localhost:%s' % sst.DEVSERVER_PORT
 
sst.actions.set_base_url('http://localhost:%s/' % sst.DEVSERVER_PORT)
assert (sst.actions.get_base_url()
        == 'http://localhost:%s/' % sst.DEVSERVER_PORT)

src/s/s/sst-0.2.4/src/sst/selftests/unicode.py   sst(Download)
    sst.actions.skip()
 
sst.actions.set_base_url('http://localhost:%s/' % sst.DEVSERVER_PORT)
sst.actions.go_to('/')
 

src/s/s/sst-0.2.4/src/sst/selftests/title.py   sst(Download)
import sst
import sst.actions
 
 
sst.actions.set_base_url('http://localhost:%s/' % sst.DEVSERVER_PORT)

src/s/s/sst-0.2.4/src/sst/selftests/textfield.py   sst(Download)
 
 
sst.actions.set_base_url('http://localhost:%s/' % sst.DEVSERVER_PORT)
sst.actions.go_to('/')
 

src/s/s/sst-0.2.4/src/sst/selftests/text.py   sst(Download)
# tests for assert_text, text_contains
 
sst.actions.set_base_url('http://localhost:%s/' % sst.DEVSERVER_PORT)
sst.actions.go_to('/')
 

src/s/s/sst-0.2.4/src/sst/selftests/test_get_text.py   sst(Download)
 
 
sst.actions.set_base_url('http://localhost:%s/' % sst.DEVSERVER_PORT)
sst.actions.go_to('/')
sst.actions.assert_title('The Page Title')

  1 | 2 | 3 | 4 | 5  Next