def test_SDL_GetHint(self): self.assertEqual(hints.SDL_SetHint(b"TEST", b"32"), 1) self.assertEqual(hints.SDL_GetHint(b"TEST"), b"32") self.assertEqual(hints.SDL_SetHint(hints.SDL_HINT_ALLOW_TOPMOST, b"true"), 1) self.assertEqual(hints.SDL_GetHint(hints.SDL_HINT_ALLOW_TOPMOST), b"true")
def test_SDL_SetHint(self): self.assertEqual(hints.SDL_SetHint(b"TEST", b"32"), 1) self.assertEqual(hints.SDL_GetHint(b"TEST"), b"32") self.assertEqual(hints.SDL_SetHint(b"TEST", b"abcdef"), 1) self.assertEqual(hints.SDL_GetHint(b"TEST"), b"abcdef") self.assertEqual(hints.SDL_SetHint(b"", b""), 1) self.assertEqual(hints.SDL_GetHint(b""), b"")
def test_SDL_SetHint(self): assert hints.SDL_SetHint(b"TEST", b"32") == 1 assert hints.SDL_GetHint(b"TEST") == b"32" assert hints.SDL_SetHint(b"TEST", b"abcdef") == 1 assert hints.SDL_GetHint(b"TEST") == b"abcdef" assert hints.SDL_SetHint(b"", b"") == 1 assert hints.SDL_GetHint(b"") == b""
def test_SDL_SetHintWithPriority(self): self.assertEqual(hints.SDL_SetHintWithPriority (b"TEST", b"32", hints.SDL_HINT_DEFAULT), 1) self.assertEqual(hints.SDL_GetHint(b"TEST"), b"32") self.assertEqual(hints.SDL_SetHintWithPriority (b"TEST", b"abcdef", hints.SDL_HINT_NORMAL), 1) self.assertEqual(hints.SDL_GetHint(b"TEST"), b"abcdef") self.assertEqual(hints.SDL_SetHintWithPriority (b"", b"", hints.SDL_HINT_OVERRIDE), 1) self.assertEqual(hints.SDL_GetHint(b""), b"")
def test_SDL_SetHintWithPriority(self): assert hints.SDL_SetHintWithPriority(b"TEST", b"32", hints.SDL_HINT_DEFAULT) == 1 assert hints.SDL_GetHint(b"TEST") == b"32" assert hints.SDL_SetHintWithPriority(b"TEST", b"abcdef", hints.SDL_HINT_NORMAL) == 1 assert hints.SDL_GetHint(b"TEST") == b"abcdef" assert hints.SDL_SetHintWithPriority(b"", b"", hints.SDL_HINT_OVERRIDE) == 1 assert hints.SDL_GetHint(b"") == b""
def test_SDL_ClearHints(self): self.assertEqual(hints.SDL_SetHint(b"TEST", b"32"), 1) self.assertEqual(hints.SDL_GetHint(b"TEST"), b"32") hints.SDL_ClearHints() self.assertEqual(hints.SDL_GetHint(b"TEST"), None)
def test_SDL_GetHint(self): assert hints.SDL_SetHint(b"TEST", b"32") == 1 assert hints.SDL_GetHint(b"TEST") == b"32" assert hints.SDL_SetHint(hints.SDL_HINT_ALLOW_TOPMOST, b"true") == 1 assert hints.SDL_GetHint(hints.SDL_HINT_ALLOW_TOPMOST) == b"true"
def test_SDL_ClearHints(self): assert hints.SDL_SetHint(b"TEST", b"32") == 1 assert hints.SDL_GetHint(b"TEST") == b"32" hints.SDL_ClearHints() assert hints.SDL_GetHint(b"TEST") == None