예제 #1
0
 def test_from_c_ptr_copy(self):
     ci = ConvertImage('ci')
     ci_new = ConvertImage.from_c_pointer(ci.c_pointer, ci)
     nt.assert_is(ci.c_pointer, ci_new.c_pointer)
     nt.assert_equal(ci_new.name, ci.name)
예제 #2
0
 def test_from_c_ptr_copy(self):
     ci = ConvertImage('ci')
     ci_new = ConvertImage.from_c_pointer(ci.c_pointer, ci)
     nt.assert_is(ci.c_pointer, ci_new.c_pointer)
     nt.assert_equal(ci_new.name, ci.name)
예제 #3
0
 def test_from_c_ptr_null(self):
     ci = ConvertImage.from_c_pointer(
         ConvertImage.C_TYPE_PTR(),
         name='ci'
     )
     nt.assert_false(ci.c_pointer)
예제 #4
0
 def test_from_c_ptr_null(self):
     ci = ConvertImage.from_c_pointer(ConvertImage.C_TYPE_PTR(), name='ci')
     nt.assert_false(ci.c_pointer)