Example #1
0
def test_pex_vars_set():
    v = Variables(environ={})
    v.set('HELLO', '42')
    assert v._get_int('HELLO') == 42
    v.delete('HELLO')
    assert v._get_int('HELLO') is None
    assert {} == v.copy()
Example #2
0
def test_pex_vars_set():
  v = Variables(environ={})
  v.set('HELLO', '42')
  assert v._get_int('HELLO') == 42
  v.delete('HELLO')
  assert v._get_int('HELLO') is None
  assert {} == v.copy()
Example #3
0
def test_pex_vars_set():
    v = Variables(environ={})
    assert v._get_int('HELLO') is None
    v.set('HELLO', '42')
    assert v._get_int('HELLO') == 42
    assert {'HELLO': '42'} == v.copy()
Example #4
0
def test_pex_vars_set():
    v = Variables(environ={})
    v.set("HELLO", "42")
    assert v._get_int("HELLO") == 42
    v.delete("HELLO")
    assert v._get_int("HELLO") is None