File: test_8bit.py

package info (click to toggle)
weakforced 3.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,196 kB
  • sloc: cpp: 20,397; python: 2,002; sh: 700; makefile: 432
file content (24 lines) | stat: -rw-r--r-- 563 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import requests
import socket
import time
import json
from test_helper import ApiTestCase

class TestEightBit(ApiTestCase):
    def setUp(self):
        time.sleep(16)
        super(TestEightBit, self).setUp()

    def test8Bit(self):
        r = self.customFuncWithName("EightBitKey", {})
        j = r.json()
        print(json.dumps(j))

        time.sleep(4)
        
        r = self.customFuncReplicaWithName("EightBitKey", {})
        j = r.json()
        print(json.dumps(j))
        count = int(j["r_attrs"]["count"])

        self.assertEqual(count, 2)