Example #1
0
 def test_that_it_raises_an_exception(self):
     nbhd = create_neighborhood()
     assert_raises(NoSuchProjectError,
                   set_context,
                   'myproject',
                   neighborhood=nbhd)
Example #2
0
 def test_proper_exception_when_id_lookup(self):
     nbhd = create_neighborhood()
     assert_raises(NoSuchProjectError,
                   set_context,
                   ObjectId(),
                   neighborhood=None)
Example #3
0
 def test_proper_exception_when_id_lookup(self):
     create_neighborhood()
     assert_raises(NoSuchProjectError,
                   set_context,
                   ObjectId(),
                   neighborhood=None)
Example #4
0
 def test_that_it_raises_an_exception(self):
     nbhd = create_neighborhood()
     assert_raises(NoSuchProjectError,
                   set_context,
                   'myproject',
                   neighborhood=nbhd)