Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)
Stores limit data.  Provides a common depot between the
ControlDaemon and the middleware which contains the raw limit data
(as msgpack'd strings).

src/t/u/turnstile-HEAD/tests/unit/test_control.py   turnstile(Download)
    def test_init(self):
        ld = control.LimitData()
 
        self.assertEqual(ld.limit_data, [])
        self.assertEqual(ld.limit_sum, self.EMPTY_CHECKSUM)
    def test_set_limits_nochange(self, mock_loads, mock_Semaphore):
        ld = control.LimitData()
        ld.limit_sum = self.TEST_DATA_CHECKSUM
 
        ld.set_limits(self.TEST_DATA)
    def test_set_limits(self, mock_loads, mock_Semaphore):
        ld = control.LimitData()
 
        ld.set_limits(self.TEST_DATA)
 
    def test_get_limits_nosum(self, mock_Semaphore):
        ld = control.LimitData()
        ld.limit_data = self.TEST_DATA
        ld.limit_sum = self.TEST_DATA_CHECKSUM
 
    def test_get_limits_nochange(self, mock_Semaphore):
        ld = control.LimitData()
        ld.limit_data = self.TEST_DATA
        ld.limit_sum = self.TEST_DATA_CHECKSUM