f723b26a1be26ac2e624787cfd5fa83b43092c0b,tests/evaluation_test.py,MorphologyTests,test_1d_error,#MorphologyTests#,161

Before Change



    def test_1d_error(self):
        test_img = np.zeros([1])
        with self.assertRaises(ValueError):
            MorphologyOps(test_img, 8).border_map()


if __name__ == "__main__":
    tf.test.main()

After Change



    def test_1d_error(self):
        test_img = np.zeros([1])
        self.assertRaises(ValueError, MorphologyOps(test_img, 8).border_map)


if __name__ == "__main__":
    tf.test.main()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 11

Non-data size: 3

Instances


Project Name: NifTK/NiftyNet
Commit Name: f723b26a1be26ac2e624787cfd5fa83b43092c0b
Time: 2017-11-10
Author: z.eaton-rosen@ucl.ac.uk
File Name: tests/evaluation_test.py
Class Name: MorphologyTests
Method Name: test_1d_error


Project Name: google/deepvariant
Commit Name: 7804a2fc6e24b3ecb9365e5459fb16ab6048ef8f
Time: 2018-08-28
Author: no-reply@google.com
File Name: third_party/nucleus/io/fasta_test.py
Class Name: InMemoryRefReaderTests
Method Name: test_iterate


Project Name: GPflow/GPflow
Commit Name: 2ea1cf911736def2bfefa9c18a2a7e70319b9b81
Time: 2017-09-27
Author: art.art.v@gmail.com
File Name: testing/test_model.py
Class Name: TestKeyboardCatching
Method Name: test_optimize_np


Project Name: NifTK/NiftyNet
Commit Name: 757024bccb9468a6afd8c365b249699fbe518acd
Time: 2018-04-05
Author: wenqi.li@ucl.ac.uk
File Name: tests/sampler_balanced_test.py
Class Name: BalancedSamplerTest
Method Name: test_dynamic_init


Project Name: deepmind/sonnet
Commit Name: bc08dbfbe77554bf3458529285003f0bf92eecd3
Time: 2018-07-17
Author: fviola@google.com
File Name: sonnet/python/modules/nets/vqvae_test.py
Class Name: VqvaeTest
Method Name: testShapeChecking


Project Name: streamlit/streamlit
Commit Name: 72960898e4860eb7b8609457b3c015579ed501ae
Time: 2019-03-20
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/add_rows_test.py
Class Name: DeltaGeneratorAddRowsTest
Method Name: test_add_rows_fails_when_wrong_name


Project Name: streamlit/streamlit
Commit Name: 72960898e4860eb7b8609457b3c015579ed501ae
Time: 2019-03-20
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/add_rows_test.py
Class Name: DeltaGeneratorAddRowsTest
Method Name: test_add_rows_fails_when_wrong_shape


Project Name: NifTK/NiftyNet
Commit Name: adf0fc53d9f7a7aae735c23c63cf54114b2add21
Time: 2018-04-05
Author: wenqi.li@ucl.ac.uk
File Name: tests/sampler_weighted_test.py
Class Name: WeightedSamplerTest
Method Name: test_dynamic_init


Project Name: NifTK/NiftyNet
Commit Name: c3a599358d21dc17f0f2b616521f59437881817d
Time: 2017-11-10
Author: wenqi.li@ucl.ac.uk
File Name: tests/evaluation_test.py
Class Name: MorphologyTests
Method Name: test_2d_offset


Project Name: tryolabs/luminoth
Commit Name: e83d699863929fa2d138adcaefd78b101058dd73
Time: 2018-02-08
Author: agustin@tryolabs.com
File Name: luminoth/models/base/truncated_base_network_test.py
Class Name: TruncatedBaseNetworkTest
Method Name: testTrainableVariables


Project Name: NifTK/NiftyNet
Commit Name: c3a599358d21dc17f0f2b616521f59437881817d
Time: 2017-11-10
Author: wenqi.li@ucl.ac.uk
File Name: tests/evaluation_test.py
Class Name: MorphologyTests
Method Name: test_1d_error