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)
def test_from_c_ptr_null(self): ci = ConvertImage.from_c_pointer( ConvertImage.C_TYPE_PTR(), name='ci' ) nt.assert_false(ci.c_pointer)
def test_from_c_ptr_null(self): ci = ConvertImage.from_c_pointer(ConvertImage.C_TYPE_PTR(), name='ci') nt.assert_false(ci.c_pointer)