コード例 #1
0
 def test_clone(self):
     # inst_ptr will be null for both
     ci1 = ConvertImage('ci')
     ci2 = ci1.clone()
     nt.assert_false(ci1)
     nt.assert_false(ci2)
     nt.assert_not_equal(ci1.c_pointer, ci2.c_pointer)
     # They should both be null
     nt.assert_equal(mem_address(ci1.c_pointer), mem_address(ci2.c_pointer))
コード例 #2
0
 def test_clone(self):
     # inst_ptr will be null for both
     ci1 = ConvertImage('ci')
     ci2 = ci1.clone()
     nt.assert_false(ci1)
     nt.assert_false(ci2)
     nt.assert_not_equal(ci1.c_pointer, ci2.c_pointer)
     # They should both be null
     nt.assert_equal(mem_address(ci1.c_pointer), mem_address(ci2.c_pointer))
コード例 #3
0
ファイル: test_algo_convert_image.py プロジェクト: Purg/vital
 def test_clone_empty(self):
     ci_empty = ConvertImage('ci')
     ci_empty2 = ci_empty.clone()
     nt.assert_false(ci_empty)
     nt.assert_false(ci_empty2)
コード例 #4
0
 def test_clone_empty(self):
     ci_empty = ConvertImage('ci')
     ci_empty2 = ci_empty.clone()
     nt.assert_false(ci_empty)
     nt.assert_false(ci_empty2)