예제 #1
0
    def test_get_obj(self):
        """
        Method should raise NotImplementedError in the ApiBase class.
        """
        request = testing.DummyRequest()

        # create a direct instance of ApiBase
        api = ApiBase(request)
        with self.assertRaises(NotImplementedError):
            api.get_obj(1)