Ejemplo n.º 1
0
    def test_teardown(self):
        base_testing.TethysTestCase.__init__ = bypass_init
        t = base_testing.TethysTestCase()
        t.tear_down = mock.MagicMock()
        t.tearDown()

        t.tear_down.assert_called()
Ejemplo n.º 2
0
    def test_setup(self, mock_harvest):
        base_testing.TethysTestCase.__init__ = bypass_init
        t = base_testing.TethysTestCase()
        t.set_up = mock.MagicMock()
        t.setUp()

        t.set_up.assert_called()
        mock_harvest().harvest.assert_called()
Ejemplo n.º 3
0
 def test_tear_down(self):
     base_testing.TethysTestCase.__init__ = bypass_init
     t = base_testing.TethysTestCase()
     t.tear_down()
Ejemplo n.º 4
0
 def test_set_up(self):
     base_testing.TethysTestCase.__init__ = bypass_init
     t = base_testing.TethysTestCase()
     t.set_up()