How to use amcrest - 10 common examples

To help you get started, we’ve selected a few amcrest examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tchellomello / python-amcrest / tests / test_utils.py View on Github external
def test_to_unit(self):
        """Test return code from utils.to_unit."""
        self.assertEqual(1024.0, to_unit(1024, unit='B')[0])
        self.assertEqual(8192.0, to_unit(8589934592, unit='MB')[0])
        self.assertEqual(1024.0, to_unit(1099511627776, unit='GB')[0])
        self.assertNotEqual(117.73, to_unit('123000300', unit='MB')[0])
github tchellomello / python-amcrest / tests / test_utils.py View on Github external
def test_to_unit(self):
        """Test return code from utils.to_unit."""
        self.assertEqual(1024.0, to_unit(1024, unit='B')[0])
        self.assertEqual(8192.0, to_unit(8589934592, unit='MB')[0])
        self.assertEqual(1024.0, to_unit(1099511627776, unit='GB')[0])
        self.assertNotEqual(117.73, to_unit('123000300', unit='MB')[0])
github tchellomello / python-amcrest / tests / test_utils.py View on Github external
def test_to_unit(self):
        """Test return code from utils.to_unit."""
        self.assertEqual(1024.0, to_unit(1024, unit='B')[0])
        self.assertEqual(8192.0, to_unit(8589934592, unit='MB')[0])
        self.assertEqual(1024.0, to_unit(1099511627776, unit='GB')[0])
        self.assertNotEqual(117.73, to_unit('123000300', unit='MB')[0])
github tchellomello / python-amcrest / tests / test_utils.py View on Github external
def test_to_unit(self):
        """Test return code from utils.to_unit."""
        self.assertEqual(1024.0, to_unit(1024, unit='B')[0])
        self.assertEqual(8192.0, to_unit(8589934592, unit='MB')[0])
        self.assertEqual(1024.0, to_unit(1099511627776, unit='GB')[0])
        self.assertNotEqual(117.73, to_unit('123000300', unit='MB')[0])
github tchellomello / python-amcrest / tests / test_utils.py View on Github external
def test_str2bool(self):
        """Test return code from utils.str2bool."""
        self.assertTrue(str2bool('y'))
        self.assertTrue(str2bool('Y'))
        self.assertTrue(str2bool('yes'))
        self.assertTrue(str2bool(1))
        self.assertFalse(str2bool('n'))
        self.assertFalse(str2bool('N'))
        self.assertFalse(str2bool('no'))
        self.assertFalse(str2bool(0))
        self.assertTrue(str2bool(u'Y'))
        self.assertRaises(ValueError, str2bool, 'amcrest')
github tchellomello / python-amcrest / tests / test_utils.py View on Github external
def test_str2bool(self):
        """Test return code from utils.str2bool."""
        self.assertTrue(str2bool('y'))
        self.assertTrue(str2bool('Y'))
        self.assertTrue(str2bool('yes'))
        self.assertTrue(str2bool(1))
        self.assertFalse(str2bool('n'))
        self.assertFalse(str2bool('N'))
        self.assertFalse(str2bool('no'))
        self.assertFalse(str2bool(0))
        self.assertTrue(str2bool(u'Y'))
        self.assertRaises(ValueError, str2bool, 'amcrest')
github tchellomello / python-amcrest / tests / test_utils.py View on Github external
def test_str2bool(self):
        """Test return code from utils.str2bool."""
        self.assertTrue(str2bool('y'))
        self.assertTrue(str2bool('Y'))
        self.assertTrue(str2bool('yes'))
        self.assertTrue(str2bool(1))
        self.assertFalse(str2bool('n'))
        self.assertFalse(str2bool('N'))
        self.assertFalse(str2bool('no'))
        self.assertFalse(str2bool(0))
        self.assertTrue(str2bool(u'Y'))
        self.assertRaises(ValueError, str2bool, 'amcrest')
github tchellomello / python-amcrest / tests / test_utils.py View on Github external
def test_str2bool(self):
        """Test return code from utils.str2bool."""
        self.assertTrue(str2bool('y'))
        self.assertTrue(str2bool('Y'))
        self.assertTrue(str2bool('yes'))
        self.assertTrue(str2bool(1))
        self.assertFalse(str2bool('n'))
        self.assertFalse(str2bool('N'))
        self.assertFalse(str2bool('no'))
        self.assertFalse(str2bool(0))
        self.assertTrue(str2bool(u'Y'))
        self.assertRaises(ValueError, str2bool, 'amcrest')
github tchellomello / python-amcrest / tests / test_utils.py View on Github external
def test_str2bool(self):
        """Test return code from utils.str2bool."""
        self.assertTrue(str2bool('y'))
        self.assertTrue(str2bool('Y'))
        self.assertTrue(str2bool('yes'))
        self.assertTrue(str2bool(1))
        self.assertFalse(str2bool('n'))
        self.assertFalse(str2bool('N'))
        self.assertFalse(str2bool('no'))
        self.assertFalse(str2bool(0))
        self.assertTrue(str2bool(u'Y'))
        self.assertRaises(ValueError, str2bool, 'amcrest')
github tchellomello / python-amcrest / tests / test_utils.py View on Github external
def test_str2bool(self):
        """Test return code from utils.str2bool."""
        self.assertTrue(str2bool('y'))
        self.assertTrue(str2bool('Y'))
        self.assertTrue(str2bool('yes'))
        self.assertTrue(str2bool(1))
        self.assertFalse(str2bool('n'))
        self.assertFalse(str2bool('N'))
        self.assertFalse(str2bool('no'))
        self.assertFalse(str2bool(0))
        self.assertTrue(str2bool(u'Y'))
        self.assertRaises(ValueError, str2bool, 'amcrest')

amcrest

Python wrapper implementation for Amcrest cameras.

GPL-2.0
Latest version published 1 year ago

Package Health Score

47 / 100
Full package analysis