'Test that invalid query raises ValidationError.'

@patch('mozillians.funfacts.models.transaction', wraps=transaction)
def test_invalid_query(self, transaction_mock):

    query = 'number'
    assert_raises(ValidationError, _validate_query, query)
    transaction_mock.atomic.assert_called_once_with()
