Example #1
0
def test_timed_key_is_saved(mock_pymongo):
    """See if timed key is saved."""
    dead = DropHandler(mock_pymongo)
    timed_key = dead.get_timed_key()

    mock_pymongo.dead.formKeys.insert_one.assert_called_with({
        'key': timed_key,
        "created": ANY
    })
Example #2
0
def test_timed_key_is_saved(mock_pymongo):
  dead = DropHandler(mock_pymongo)
  timed_key = dead.get_timed_key()
  mock_pymongo.dead.formKeys.insert_one.assert_called_with({"key": timed_key,"created": ANY})