From 9857dc5cf51ead4a64830fabfeef14f8c1430b27 Mon Sep 17 00:00:00 2001 From: hexatester Date: Wed, 24 Mar 2021 14:37:26 +0700 Subject: [PATCH] Added test_jenis_kelamin to test_enums --- tests/test_enums.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/test_enums.py diff --git a/tests/test_enums.py b/tests/test_enums.py new file mode 100644 index 0000000..89836d6 --- /dev/null +++ b/tests/test_enums.py @@ -0,0 +1,8 @@ +from dapodik.enums import JenisKelamin + + +def test_jenis_kelamin(): + assert JenisKelamin("L") == JenisKelamin.LAKI_LAKI + assert JenisKelamin("P") == JenisKelamin.PEREMPUAN + assert str(JenisKelamin("L")).lower() == "laki-laki" + assert str(JenisKelamin("P")).lower() == "perempuan"