@@ -0,0 +1,1361 @@
+import unittest%0A%0Afrom chassis.services import data_context%0Afrom chassis.test.services.foo_context import FooContext%0A%0A%0Aclass UnextendedDatasourceContextTest(unittest.TestCase):%0A    %22%22%22Unit test that an unextended DatasourceContext%0A    methods raise NotImplementedErrors%0A%0A    %22%22%22%0A    def test_insert_raises_error(self):%0A        %22%22%22insert should raise a NotImplementedError%22%22%22%0A        context = data_context.DatasourceContext()%0A        with self.assertRaises(NotImplementedError):%0A            context.insert('query', %5B'params'%5D)%0A%0A    def test_get_connection_raises_error(self):%0A        %22%22%22_get_connection should raise a NotImplementedError%22%22%22%0A        context = data_context.DatasourceContext()%0A        with self.assertRaises(NotImplementedError):%0A            context._get_connection()%0A%0A    def test_close_connection_raises_error(self):%0A        %22%22%22_close_connection should raise a NotImplementedError%22%22%22%0A        context = data_context.DatasourceContext()%0A        with self.assertRaises(NotImplementedError):%0A            context._close_connection()%0A%0A    def test_enter_raises_error(self):%0A        %22%22%22__enter__ should raise a NotImplementedError%22%22%22%0A        context = data_context.DatasourceContext()%0A        with self.assertRaises(NotImplementedError):%0A            with context as connection:%0A                self.assertFalse('This statement should not be executed')%0A

Add unit test for DatasourceContext