##// END OF EJS Templates
Pressing Up while on the first line should move cursor to (0,0)...
Pressing Up while on the first line should move cursor to (0,0) Originally from CodeMirror: From 4ec8a344b55de67142ebe3143df8ac55e2e4f32e Mon Sep 17 00:00:00 2001 From: Pavel Feldman <pavel.feldman@gmail.com> Date: Tue, 7 Aug 2012 10:52:24 +0400 Subject: [PATCH] Pressing Up while on the first line should move cursor to (0,0)

File last commit:

r7533:7a85cbc1
r8169:e9c46a03
Show More
test_mongodb.py
44 lines | 1.1 KiB | text/x-python | PythonLexer
"""Tests for mongodb backend
Authors:
* Min RK
"""
#-------------------------------------------------------------------------------
# Copyright (C) 2011 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# Imports
#-------------------------------------------------------------------------------
from unittest import TestCase
from nose import SkipTest
from pymongo import Connection
from IPython.parallel.controller.mongodb import MongoDB
from . import test_db
try:
c = Connection()
except Exception:
c=None
class TestMongoBackend(test_db.TaskDBTest, TestCase):
"""MongoDB backend tests"""
def create_db(self):
try:
return MongoDB(database='iptestdb', _connection=c)
except Exception:
raise SkipTest("Couldn't connect to mongodb")
def teardown(self):
if c is not None:
c.drop_database('iptestdb')