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

        # create a direct instance of ApiBase (normally you wouldn't do this)
        api = ApiBase(request)
        with self.assertRaises(NotImplementedError):
            api.get_obj_list()