Пример #1
0
 def test_should_return_previously_set_value_and_clean_state(self):
     req_id = '1234'
     VclRefreshState.set_refresh(req_id, True)
     assert_equals({req_id: True}, VclRefreshState.refresh)
     assert_true(VclRefreshState.get_refresh(req_id))
     assert_equals({}, VclRefreshState.refresh)
Пример #2
0
 def test_should_return_previously_set_value_and_clean_state(self):
     req_id = '1234'
     VclRefreshState.set_refresh(req_id, True)
     assert_equals({req_id: True}, VclRefreshState.refresh)
     assert_true(VclRefreshState.get_refresh(req_id))
     assert_equals({}, VclRefreshState.refresh)
Пример #3
0
 def test_should_return_default_value(self):
     non_existence_id = '1235'
     assert_false(VclRefreshState.get_refresh(non_existence_id))
Пример #4
0
 def test_should_return_default_value(self):
     non_existence_id = '1235'
     assert_false(VclRefreshState.get_refresh(non_existence_id))