Example #1
0
    def test_can_init_image_later(self):
        algorithm = LiveWireSegmentation(self.test_image)

        algorithm_post = LiveWireSegmentation()
        algorithm_post.image = self.test_image

        self.assertDictEqual(algorithm.G, algorithm_post.G, 'Post-initialization failed')
Example #2
0
    def test_can_init_image_later(self):
        algorithm = LiveWireSegmentation(self.test_image)

        algorithm_post = LiveWireSegmentation()
        algorithm_post.image = self.test_image

        self.assertDictEqual(algorithm.G, algorithm_post.G,
                             'Post-initialization failed')