Пример #1
0
 def test_cari_provinsi_num_cresta_string_romawi(self):
     id_cresta = "I"
     hal = Halimun("172.19.0.11")
     try:
         id_provinsi = hal.cari_provinsi_dari_cresta(id_cresta)
     except RuntimeError, e:
         assert True
Пример #2
0
 def test_cari_provinsi_num_cresta_string(self):
     id_cresta = "2.2"
     hal = Halimun("172.19.0.11")
     id_provinsi = hal.cari_provinsi_dari_cresta(id_cresta)
     assert isinstance(id_provinsi, int)
Пример #3
0
 def test_cari_provinsi_num_cresta_decimal(self):
     id_cresta = 2.2
     hal = Halimun("172.19.0.11")
     id_provinsi = hal.cari_provinsi_dari_cresta(id_cresta)
     assert isinstance(id_provinsi, int)