Beispiel #1
0
    def json_field_test(self):
        holder = Holder()
        h = holder.json()
        j = json.loads(h)

        assert 'rfid' in j
        assert 'rfid_stamp' in j
        assert 'port' in j
        assert 'baudrate' in j
        assert 'connection_stamp' in j
        assert 'connection_status' in j
        assert 'connection_time' in j
Beispiel #2
0
 def rfid_test(self):
     holder = Holder()
     stamp = holder.rfid_stamp
     holder.set_rfid('12345')
     assert holder.rfid_stamp != stamp