Exemple #1
0
class BaseOperationFeatureTestCase(unittest.TestCase):
    def setUp(self):
        self.OperationFeature = BaseOperationFeature(mock.Mock(),
                                                     mock.Mock(__name__='Foo'),
                                                     **{})

    def test_execute_not_implemented(self):
        self.assertRaises(NotImplementedError,
                          lambda: self.OperationFeature.execute(''))
Exemple #2
0
 def setUp(self):
     self.OperationFeature = BaseOperationFeature(mock.Mock(),
                                                  mock.Mock(__name__='Foo'),
                                                  **{})
Exemple #3
0
 def setUp(self):
     self.OperationFeature = BaseOperationFeature(mock.Mock(), mock.Mock(__name__='Foo'), **{})
Exemple #4
0
class BaseOperationFeatureTestCase(unittest.TestCase):
    def setUp(self):
        self.OperationFeature = BaseOperationFeature(mock.Mock(), mock.Mock(__name__='Foo'), **{})

    def test_execute_not_implemented(self):
        self.assertRaises(NotImplementedError, lambda: self.OperationFeature.execute(''))