Skip to content

Commit

Permalink
Added test_jenis_kelamin to test_enums
Browse files Browse the repository at this point in the history
  • Loading branch information
hexatester committed Mar 24, 2021
1 parent 7e42807 commit 9857dc5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_enums.py
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 9857dc5

Please sign in to comment.