Exemplo n.º 1
0
 def test_get_barcodes_error(self):
     with self.assertRaises(ValueError):
         get_barcodes(2000000)
Exemplo n.º 2
0
    def test_get_barcodes(self):
        obs = get_barcodes(2)
        self.assertEqual(obs, ['000000005', '000000006'])

        obs = get_barcodes(3)
        self.assertEqual(obs, ['000000005', '000000006', '000000007'])