def test_query_device_capacity_non_posix_system_fails(self):
        with mock.patch('bitmath.os_name') as os_name:
            os_name.return_value = 'nt'
            with self.assertRaises(NotImplementedError):
                bitmath.query_device_capacity(device)
Convience accessor for tests and contexts with sole manager.
dataset/ETHPy150Open tbielawa/bitmath/tests/test_query_device_capacity.py/TestQueryDeviceCapacity.test_query_device_capacity_non_posix_system_fails--crossover with--dataset/ETHPy150Open galaxyproject/pulsar/pulsar/core.py/PulsarApp.only_manager